diff --git a/configure/os/CONFIG.Common.darwin-ppc b/configure/os/CONFIG.Common.darwin-ppc index e80b3149f..3ce4c604f 100644 --- a/configure/os/CONFIG.Common.darwin-ppc +++ b/configure/os/CONFIG.Common.darwin-ppc @@ -28,16 +28,24 @@ OP_SYS_CFLAGS += -fno-common CPPSNCFLAGS += -no-cpp-precomp # -# The following two definitions enable the use of DarwinPorts packages. +# Darwin os definition # -OP_SYS_CPPFLAGS += -I/opt/local/include -OP_SYS_LDFLAGS += -L/opt/local/lib +OP_SYS_CPPFLAGS += -Ddarwin + +# +# The following two definitions enable the use of DarwinPorts packages. + +# +OP_SYS_INCLUDES += -I/opt/local/include +# dir/firstword/wildcard used to avoid warning -L: directory name (...) does not exist +OP_SYS_LDFLAGS += $(addprefix -L,$(dir $(firstword $(wildcard /opt/local/lib/*)))) # # The following two definitions enable the use of Fink packages. # -OP_SYS_CPPFLAGS += -I/sw/include -OP_SYS_LDFLAGS += -L/sw/lib +OP_SYS_INCLUDES += -I/sw/include +# dir/firstword/wildcard used to avoid warning -L: directory name (...) does not exist +OP_SYS_LDFLAGS += $(addprefix -L,$(dir $(firstword $(wildcard /sw/lib/*)))) # # Libraries for command-line editing. diff --git a/configure/os/CONFIG_SITE.Common.darwin-ppc b/configure/os/CONFIG_SITE.Common.darwin-ppc index 3abffa89a..8d65d3187 100644 --- a/configure/os/CONFIG_SITE.Common.darwin-ppc +++ b/configure/os/CONFIG_SITE.Common.darwin-ppc @@ -9,4 +9,6 @@ # # Other local options # -OP_SYS_CFLAGS += -g +OPT_CFLAGS_YES += -g +OPT_CXXFLAGS_YES += -g +COMMANDLINE_LIBRARY = READLINE