diff --git a/library/lammpi/Makefile.in b/library/lammpi/Makefile.in index 877ea3335..859850381 100644 --- a/library/lammpi/Makefile.in +++ b/library/lammpi/Makefile.in @@ -59,7 +59,7 @@ hash.o: $(srcdir)/hash.c $(srcdir)/hash.h $(MPI_CC) -c $(CFLAGS) $(srcdir)/hash.c -o hash.o @DO_SECOND_LD@yap_mpi.@SO@: $(OBJS) -@DO_SECOND_LD@ @SHLIB_LD@ -o yap_mpi.@SO@ $(OBJS) $(MPILDF) @EXTRA_LIBS_FOR_DLLS@ +@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o yap_mpi.@SO@ $(OBJS) $(MPILDF) @EXTRA_LIBS_FOR_DLLS@ install: all @if test "$(SOBJS)" = ""; then echo ""; else $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR); fi diff --git a/packages/CLPBN/horus/Makefile.in b/packages/CLPBN/horus/Makefile.in index 4550aa4b9..17487fe6a 100644 --- a/packages/CLPBN/horus/Makefile.in +++ b/packages/CLPBN/horus/Makefile.in @@ -195,7 +195,7 @@ with_tests: $(LIB) $(HCLI) $(UTESTING) @DO_SECOND_LD@$(LIB): $(LIB_OBJS) -@DO_SECOND_LD@ @SHLIB_CXX_LD@ -o $@ $(LIB_OBJS) @EXTRA_LIBS_FOR_SWIDLLS@ +@DO_SECOND_LD@ @SHLIB_CXX_LD@ $(LDFLAGS) -o $@ $(LIB_OBJS) @EXTRA_LIBS_FOR_SWIDLLS@ $(HCLI): $(HCLI_OBJS)