diff options
author | Nick Clifton <nickc@redhat.com> | 2007-10-04 14:06:40 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-10-04 14:06:40 +0000 |
commit | 8cf713f89442a3575daadbb606decb670f95829f (patch) | |
tree | 1193e71a3f38f7c613343fd3382ac43b8fe3469e /opcodes/configure.in | |
parent | 268448a19e8c2942f239b16bf69a7bcc4978cbc0 (diff) | |
download | gdb-8cf713f89442a3575daadbb606decb670f95829f.tar.gz |
* configure.in (WIN32LDFLAGS): Rename to SHARED_LDFLAGS.
(WIN32LIBADD): Rename to SHARED_LIBADD
(SHARED_DEPENDENCIES): New exported variable.
(enable_shared): Add dependency upon libbfd.la for non-cygwin based shared library builds.
* Makefile.am (libopcodes_la_DEPENDENCIES): Append SHARED_DEPENDENCIES.
(libopcodes_la_LIBADD): Rename WIN32LIBADD to SHARED_LIBADD.
(libopcodes_la_LDFLAGS): Rename WIN32LDFLAGS to SHARED_LDFLAGS.
* configure: Regenerate.
* Makefile.in: Regenerate.
Diffstat (limited to 'opcodes/configure.in')
-rw-r--r-- | opcodes/configure.in | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/opcodes/configure.in b/opcodes/configure.in index c37a5f5c693..3ff2045f90f 100644 --- a/opcodes/configure.in +++ b/opcodes/configure.in @@ -97,19 +97,25 @@ AC_SUBST(cgendir) using_cgen=no -# Horrible hacks to build DLLs on Windows. -WIN32LDFLAGS= -WIN32LIBADD= -case "${host}" in -*-*-cygwin*) - if test "$enable_shared" = "yes"; then - WIN32LDFLAGS="-no-undefined" - WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" - fi - ;; -esac -AC_SUBST(WIN32LDFLAGS) -AC_SUBST(WIN32LIBADD) +# Horrible hacks to build DLLs on Windows and a shared library elsewhere. +SHARED_LDFLAGS= +SHARED_LIBADD= +SHARED_DEPENDENCIES= +if test "$enable_shared" = "yes"; then + case "${host}" in + *-*-cygwin*) + SHARED_LDFLAGS="-no-undefined" + SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" + ;; + *) + SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so" + SHARED_DEPENDENCIES="`pwd`/../bfd/.libs/libbfd.la" + ;; + esac +fi +AC_SUBST(SHARED_LDFLAGS) +AC_SUBST(SHARED_LIBADD) +AC_SUBST(SHARED_DEPENDENCIES) # target-specific stuff: |