[plt-scheme] [patch] for --as-needed LDFLAG
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
one of our Gentoo users made this patch which allows for linking with the
- --as-needed LDFLAG. It's supposed to work for both 360 and 370.
Marijn
also available from [http://bugs.gentoo.org/attachment.cgi?id=125980]
- --- src/mzscheme/Makefile.in.old 2006-06-29 18:06:28.000000000 +0200
+++ src/mzscheme/Makefile.in 2007-07-12 08:40:12.000000000 +0200
@@ -124,7 +124,8 @@
$(MAKE) libmzscheme. at LIBSFX@
libmzscheme. at LIBSFX@: src/*. at LTO@ @FOREIGN_LIB_IF_USED@
- - $(AR) $(ARFLAGS) libmzscheme. at LIBSFX@ src/*. at LTO@ @FOREIGN_OBJSLIB_IF_USED@
@LIBMZSCHEME_DEP@
+ $(AR) $(ARFLAGS) libmzscheme. at LIBSFX@ src/*. at LTO@ \
+ @FOREIGN_OBJSLIB_IF_USED@ @LIBMZSCHEME_DEP@ -ldl -lm
$(RANLIB) libmzscheme. at LIBSFX@
# Irix sproc, only
- --- src/mred/Makefile.in.old 2007-07-12 04:44:58.000000000 +0200
+++ src/mred/Makefile.in 2007-07-12 09:59:51.000000000 +0200
@@ -110,7 +110,7 @@
$(MREDLINKER) $(MREDLDFLAGS) $(MRSTATIC) -o mred $(MREDOBJECTS)
$(MREDLDLIBS) $(MRSTATIC_STUB)
libmred. at LIBSFX@: $(WXLIBSNORM)
- - $(AR) $(ARFLAGS) libmred. at LIBSFX@ $(WXLIBSNORM) @LIBMRED_DEP@
+ $(AR) $(ARFLAGS) libmred. at LIBSFX@ $(WXLIBSNORM) @LIBMRED_DEP@ $(LDLIBS)
MRFW = PLT_MrEd.framework/Versions/$(FWVERSION)/PLT_MrEd
MRFWRES = PLT_MrEd.framework/Versions/$(FWVERSION)/Resources/PLT_MrEd.rsrc
- --- src/mzscheme/gc2/Makefile.in.old 2007-07-12 04:44:57.000000000 +0200
+++ src/mzscheme/gc2/Makefile.in 2007-07-12 11:00:15.000000000 +0200
@@ -50,7 +50,7 @@
port. at LTO@ \
portfun. at LTO@ \
print. at LTO@ \
- - rational. at LTO@ \
+ rational. at LTO@ \
read. at LTO@ \
regexp. at LTO@ \
sema. at LTO@ \
@@ -91,7 +91,7 @@
$(XSRCDIR)/port.c \
$(XSRCDIR)/portfun.c \
$(XSRCDIR)/print.c \
- - $(XSRCDIR)/rational.c \
+ $(XSRCDIR)/rational.c \
$(XSRCDIR)/read.c \
$(XSRCDIR)/regexp.c \
$(XSRCDIR)/sema.c \
@@ -302,7 +302,7 @@
EXTRA_OBJS_L = ../src/gmp. at LTO@ @FOREIGN_OBJSLIB_IF_USED@
../libmzscheme3m. at LIBSFX@: $(OBJS) $(EXTRA_OBJS_T)
- - $(AR) $(ARFLAGS) ../libmzscheme3m. at LIBSFX@ $(OBJS) $(EXTRA_OBJS_L)
+ $(AR) $(ARFLAGS) ../libmzscheme3m. at LIBSFX@ $(OBJS) $(EXTRA_OBJS_L) @LDFLAGS@
$(LIBS)
$(RANLIB) ../libmzscheme3m. at LIBSFX@
../mzscheme3m at NOT_OSX@: main. at LTO@ ../libmzscheme3m. at LIBSFX@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGqKoIp/VmCx0OL2wRAlBrAJwMqg7PRuLF3ft0Cj61exuJ2f7fEgCgtsOS
g/DMP8dl8hxAUxaCNvS83fE=
=i2F6
-----END PGP SIGNATURE-----