Fix hardcoded link to dl library

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 10 years ago
parent 0e9facfd88
commit 018f9f3709

@ -53,7 +53,7 @@ if test "x$with_ocamlsolver" != xno; then
OCAMLLIB_FLAGS="-L$OCAMLLIB" OCAMLLIB_FLAGS="-L$OCAMLLIB"
FACILELIB=`ocamlc -where`/facile FACILELIB=`ocamlc -where`/facile
FACILELIB_FLAGS="-L$FACILELIB" 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) AC_DEFINE(HAVE_FACILE, 1)
fi fi

@ -43,7 +43,7 @@ testcprog: $(CHEM_CMX) $(CHEM_O)
$(OCAMLOPT) -output-obj -o solver.o $(LIBADD_CMX) $(CHEM_CMX) modwrap.o $(OCAMLOPT) -output-obj -o solver.o $(LIBADD_CMX) $(CHEM_CMX) modwrap.o
gcc -c -o main.o main.c -L $(OCAMLLIB) gcc -c -o main.o main.c -L $(OCAMLLIB)
gcc -o $@ main.o solver.o -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:
.SUFFIXES: .ml .mli .mly .mll .cmi .cmo .cmx .p.cmx .c .SUFFIXES: .ml .mli .mly .mll .cmi .cmo .cmx .p.cmx .c

Loading…
Cancel
Save