* Removed the hardcoded -lelf from src/Makefile.am.
* Moved the hardcoded -lm -ldl from src/Makefile.am to configure.ac. git-svn-id: svn://svn.zoy.org/elk/trunk@114 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
parent
de7ea1ad63
commit
b7a437f9a5
|
@ -164,6 +164,7 @@ fi
|
|||
|
||||
if test "${ac_cv_my_have_elf}" = "yes"; then
|
||||
AC_DEFINE(HAVE_LIBELF, 1, Define if you have libelf.)
|
||||
ELK_LIBS="${ELK_LIBS} -lelf"
|
||||
ac_cv_my_can_dump=yes
|
||||
ac_cv_my_can_load_obj=yes
|
||||
ac_cv_my_can_load_lib=yes
|
||||
|
@ -470,7 +471,9 @@ AC_SUBST(MOTIF_LIBS)
|
|||
|
||||
dnl Export variables
|
||||
INCLUDES="${INCLUDES} -I\$(top_srcdir)/include"
|
||||
ELK_LIBS="${ELK_LIBS} -lm -ldl"
|
||||
AC_SUBST(INCLUDES)
|
||||
AC_SUBST(ELK_LIBS)
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
|
|
|
@ -3,7 +3,7 @@ NULL =
|
|||
lib_LTLIBRARIES = libelk.la
|
||||
libelk_la_CFLAGS = -I/usr/include/libelf -DNOMAIN
|
||||
libelk_la_LDFLAGS =
|
||||
libelk_la_LIBADD = -lm -lelf -ldl
|
||||
libelk_la_LIBADD = @ELK_LIBS@
|
||||
libelk_la_SOURCES = \
|
||||
autoload.c \
|
||||
bignum.c \
|
||||
|
|
Loading…
Reference in New Issue