From 018f9f37093234758da14b56ac7690e51abff86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 28 Jun 2015 02:57:02 +0200 Subject: Fix hardcoded link to dl library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kalzium/configure.in.in | 2 +- kalzium/src/solver/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kalzium/configure.in.in b/kalzium/configure.in.in index 99e2acca..d608dc9f 100644 --- a/kalzium/configure.in.in +++ b/kalzium/configure.in.in @@ -53,7 +53,7 @@ if test "x$with_ocamlsolver" != xno; then OCAMLLIB_FLAGS="-L$OCAMLLIB" FACILELIB=`ocamlc -where`/facile FACILELIB_FLAGS="-L$FACILELIB" - EQCHEM_LDADD="-lasmrun -lnums -lm -ldl solver.o modwrap.o" + EQCHEM_LDADD="-lasmrun -lnums -lm $LIBDL solver.o modwrap.o" AC_DEFINE(HAVE_FACILE, 1) fi diff --git a/kalzium/src/solver/Makefile b/kalzium/src/solver/Makefile index 6012982c..19f9dafb 100644 --- a/kalzium/src/solver/Makefile +++ b/kalzium/src/solver/Makefile @@ -43,7 +43,7 @@ testcprog: $(CHEM_CMX) $(CHEM_O) $(OCAMLOPT) -output-obj -o solver.o $(LIBADD_CMX) $(CHEM_CMX) modwrap.o gcc -c -o main.o main.c -L $(OCAMLLIB) gcc -o $@ main.o solver.o -L $(OCAMLLIB) \ - -L $(OCAMLLIB)/facile -lasmrun -lstr -lnums -lm -ldl modwrap.o + -L $(OCAMLLIB)/facile -lasmrun -lstr -lnums -lm $(LIBDL) modwrap.o .SUFFIXES: .SUFFIXES: .ml .mli .mly .mll .cmi .cmo .cmx .p.cmx .c -- cgit v1.2.3