[m-rev.] for review: Update configuration for FreeBSD.
Peter Wang
novalazy at gmail.com
Thu Oct 15 14:32:10 AEDT 2015
Let me know if there is anything in particular I should check.
---
These changes were tested on FreeBSD 10.1 i386/amd64.
configure.ac:
Relax case pattern so it will match FreeBSD on architectures
other than i*86, in particular amd64.
Delete custom commands for LINK_SHARED_OBJ and LINK_SHARED_OBJ_SH.
The default "$CC -shared" works fine.
Use the default method of setting the rpath (-Wl,-rpath,)
as we now invoke the linker through the C compiler.
clang does not support the -R flag anyway.
Let EXT_FOR_LINK_WITH_PIC_OBJECTS=o (same as everywhere else).
Let DEFAULT_LINKAGE=shared (it works fine).
---
configure.ac | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
index 445a848..e92f8b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4342,18 +4342,11 @@ case "$host" in
EXT_FOR_SHARED_LIB=so
EXT_FOR_LINK_WITH_PIC_OBJECTS=o
;;
- i*86-*-freebsd*)
- # From Cornelis van der Laan <nils at ims.uni-stuttgart.de>
+ *-freebsd*)
+ # Tested on FreeBSD 10.1 i386/amd64.
AC_MSG_RESULT(yes)
- LINK_SHARED_OBJ="ld -Bshareable"
- LINK_SHARED_OBJ_SH="ld -Bshareable"
EXT_FOR_SHARED_LIB=so
- # From Kevet Duncombe <dunc at acm.org> tested on FreeBSD 2.2.5
- EXE_RPATH_OPT="-R"
- EXE_RPATH_SEP=" -R"
- SHLIB_RPATH_OPT="-R"
- SHLIB_RPATH_SEP=" -R"
- DEFAULT_LINKAGE=static
+ EXT_FOR_LINK_WITH_PIC_OBJECTS=o
;;
i*86-*-solaris2.*)
AC_MSG_RESULT(yes)
--
2.1.2
More information about the reviews
mailing list