You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/libint/files/libint-1.1.6-as-needed.patch

78 lines
2.7 KiB

configure.ac | 3 +--
src/bin/MakeRules.in | 2 +-
src/lib/libderiv/Makefile.library | 2 +-
src/lib/libint/Makefile.library | 2 +-
src/lib/libr12/Makefile.library | 2 +-
5 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
index dc86e88..8cc3aac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -317,12 +317,11 @@ LIBS=$withval
echo Using extra libraries: $withval
)
-LDFLAGS=
LIBDIRS=
AC_ARG_WITH(libdirs,
[ --with-libdirs Specifies library directories (-Ldir1 -Ldir2).],
LIBDIRS=$withval
-LDFLAGS=$withval
+LDFLAGS="$LDFLAGS $withval"
echo Using extra library directories: $withval
)
diff --git a/src/bin/MakeRules.in b/src/bin/MakeRules.in
index 5b90607..8ea5005 100644
--- a/src/bin/MakeRules.in
+++ b/src/bin/MakeRules.in
@@ -3,7 +3,7 @@ HAVE_MAKERULES = yes
BINOBJ = $(BUILD_CSRC:%.c=%.$(OBJSUF)) $(BUILD_CXXSRC:%.cc=%.$(OBJSUF))
$(BUILD_BINARY): $(BINOBJ)
- $(LD) $^ $(LDFLAGS) $(SYSLIBS) -o $@
+ $(LD) $(LDFLAGS) $^ $(SYSLIBS) -o $@
.PHONY: install install_inc install_target uninstall clean oclean distclean targetclean realclean
install::
diff --git a/src/lib/libderiv/Makefile.library b/src/lib/libderiv/Makefile.library
index ee152ef..8debfe8 100644
--- a/src/lib/libderiv/Makefile.library
+++ b/src/lib/libderiv/Makefile.library
@@ -23,7 +23,7 @@ $(TOPDIR)/lib/$(NAME).a: $(LIBOBJ)
# this is how shared library is made
$(TOPDIR)/lib/$(NAME).la: $(LIBOBJ)
- $(LTLINK) $(CXX) -o $@ $^ $(LTLINKLIBOPTS)
+ $(LTLINK) $(CXX) $(LDFLAGS) -o $@ $^ $(LTLINKLIBOPTS)
$(TOPDIR)/include/$(NAME)/$(NAME).h: $(NAME).h
$(INSTALL) $(INSTALLDIROPT) $(TOPDIR)/include/$(NAME)
diff --git a/src/lib/libint/Makefile.library b/src/lib/libint/Makefile.library
index 23e2918..01c4225 100644
--- a/src/lib/libint/Makefile.library
+++ b/src/lib/libint/Makefile.library
@@ -41,7 +41,7 @@ $(TOPDIR)/lib/$(NAME).a: $(LIBOBJ)
# this is how shared library is made
$(TOPDIR)/lib/$(NAME).la: $(LIBOBJ)
- $(LTLINK) $(CXX) -o $@ $^ $(LTLINKLIBOPTS)
+ $(LTLINK) $(CXX) $(LDFLAGS) -o $@ $^ $(LTLINKLIBOPTS)
$(TOPDIR)/include/$(NAME)/$(NAME).h: $(NAME).h
$(INSTALL) $(INSTALLDIROPT) $(TOPDIR)/include/$(NAME)
diff --git a/src/lib/libr12/Makefile.library b/src/lib/libr12/Makefile.library
index 1510807..26d47a4 100644
--- a/src/lib/libr12/Makefile.library
+++ b/src/lib/libr12/Makefile.library
@@ -47,7 +47,7 @@ $(TOPDIR)/lib/$(NAME).a: $(LIBOBJ)
# this is how shared library is made
$(TOPDIR)/lib/$(NAME).la: $(LIBOBJ)
- $(LTLINK) $(CXX) -o $@ $^ $(LTLINKLIBOPTS)
+ $(LTLINK) $(CXX) $(LDFLAGS) -o $@ $^ $(LTLINKLIBOPTS)
$(TOPDIR)/include/$(NAME)/$(NAME).h: $(NAME).h
$(INSTALL) $(INSTALLDIROPT) $(TOPDIR)/include/$(NAME)