From 7f37a7a60dec8ee0aa18d794b5789cc555da6036 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Sun, 13 Dec 2009 13:44:54 +0000 Subject: another fix to pass better options to the linker on Mac OS X, in particular to 10.4 ppc systems :-) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2028 b956fd51-792f-4845-bead-9b4dfca2ff2c --- configure | 4 +++- configure.ac | 4 +++- src/Makefile.in | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index a3dc7cac..e7a36683 100755 --- a/configure +++ b/configure @@ -6250,7 +6250,9 @@ See the pkg-config man page for more details. # determine linker-flags -LDFLAGS="-undefined dynamic_lookup" +if test x$FPC_PLATFORM = xdarwin; then + LDFLAGS="-macosx_version_min 10.4 -undefined dynamic_lookup" +fi #LIBS= diff --git a/configure.ac b/configure.ac index 69e358fc..b7055ae6 100644 --- a/configure.ac +++ b/configure.ac @@ -224,7 +224,9 @@ PKG_HAVE([portmixer], [portmixer], no) AC_SUBST_DEFINE(HAVE_PORTMIXER, $portmixer_HAVE) # determine linker-flags -LDFLAGS="-undefined dynamic_lookup" +if test x$FPC_PLATFORM = xdarwin; then + LDFLAGS="-macosx_version_min 10.4 -undefined dynamic_lookup" +fi #LIBS= AC_SUBST(LDFLAGS) AC_SUBST(LIBS) diff --git a/src/Makefile.in b/src/Makefile.in index 06e62c43..6e221af9 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -122,7 +122,7 @@ endif LIBS ?= @LIBS@ LDFLAGS ?= @LDFLAGS@ -linkflags := -L/usr/lib $(sort $(LDFLAGS) $(LIBS)) +linkflags := -L/usr/lib $(LDFLAGS) $(sort $(LIBS)) ifneq ($(linkflags),) PLINKFLAGS := -k"$(linkflags)" endif -- cgit v1.2.3