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 | 45d42143d489a6b7ee78fd118b573906c43ecb0b (patch) | |
tree | 7905dc353c24156363f215f768c013fd06af5301 /opcodes/configure.in | |
parent | 8524166df4a01d692920721b0bfbb3df8d7f6a22 (diff) | |
download | gdb-45d42143d489a6b7ee78fd118b573906c43ecb0b.zip gdb-45d42143d489a6b7ee78fd118b573906c43ecb0b.tar.gz gdb-45d42143d489a6b7ee78fd118b573906c43ecb0b.tar.bz2 |
* 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 c37a5f5..3ff2045 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: |