Skip to content
Snippets Groups Projects
Commit c5573072 authored by Khaled Noaman's avatar Khaled Noaman
Browse files

Patch to build the library on FreeBSD using shared library naming convention +...

Patch to build the library on FreeBSD using shared library naming convention + minor changes, by Max Gotlib


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173626 13f79535-47bb-0310-9956-ffa450edef68
parent 636568e8
No related branches found
No related tags found
No related merge requests found
...@@ -305,6 +305,8 @@ else ...@@ -305,6 +305,8 @@ else
ALLLIBS = ${LIBS} ALLLIBS = ${LIBS}
endif endif
SHLIBSUFFIX=.so SHLIBSUFFIX=.so
## Compiler switch to embed a library name
LD_SONAME = -Wl,-soname,${SO_NAME}
endif endif
#=============== IRIX SPECIFIC OPTIONS ============================ #=============== IRIX SPECIFIC OPTIONS ============================
......
...@@ -75,7 +75,7 @@ CFLAGS = @cflags@ ...@@ -75,7 +75,7 @@ CFLAGS = @cflags@
LDFLAGS = @ldflags@ LDFLAGS = @ldflags@
PREFIX = @prefix@ PREFIX = @prefix@
THREADS = @threads@ THREADS = @threads@
LIBS = @extra_libs@ EXTRA_LIBS = @extra_libs@
include ../../../version.incl include ../../../version.incl
include ../../Makefile.incl include ../../Makefile.incl
......
...@@ -87,7 +87,10 @@ ifeq (${PLATFORM},HPUX) ...@@ -87,7 +87,10 @@ ifeq (${PLATFORM},HPUX)
all:: bindir domidtest dommemtest idommemtest domtest idomtest threadtest encodingtest traversal itraversal rangetest irangetest inittermtest all:: bindir domidtest dommemtest idommemtest domtest idomtest threadtest encodingtest traversal itraversal rangetest irangetest inittermtest
endif endif
else else
all:: bindir domidtest dommemtest idommemtest domtest idomtest threadtest encodingtest traversal itraversal rangetest irangetest inittermtest all:: bindir domidtest dommemtest idommemtest domtest idomtest encodingtest traversal itraversal rangetest irangetest inittermtest
ifneq (${THREADS},none)
all:: threadtest
endif
endif endif
bindir:: bindir::
......
...@@ -339,21 +339,22 @@ if test $platform = "freebsd"; then ...@@ -339,21 +339,22 @@ if test $platform = "freebsd"; then
if test -n "${XERCESCROOT}"; then if test -n "${XERCESCROOT}"; then
# try lookup the configuration results # try lookup the configuration results
. "${XERCESCROOT}/version.incl" . "${XERCESCROOT}/version.incl"
if test -f "${XERCESCROOT}/src/config.log" ; then SOLIBNAME=libxerces-c.so.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
if grep XML_USE_LIBICONV "${XERCESCROOT}/src/config.log" \ if test -f "${XERCESCROOT}/src/xercesc/config.log" ; then
if grep XML_USE_LIBICONV "${XERCESCROOT}/src/xercesc/config.log" \
> /dev/null 2>&1 ; then > /dev/null 2>&1 ; then
transcodingLibs=" -L/usr/local/lib -liconv " transcodingLibs=" -L/usr/local/lib -liconv "
transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include " transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
fi fi
elif test -f "${XERCESCROOT}/obj/IconvFBSDTransService.o" ; then elif test -f "${XERCESCROOT}/obj/FREEBSD/IconvFBSDTransService.o" ; then
if nm "${XERCESCROOT}/obj/IconvFBSDTransService.o" | \ if nm "${XERCESCROOT}/obj/FREEBSD/IconvFBSDTransService.o" | \
grep XML_USE_LIBICONV > /dev/null 2>&1 ; then grep iconv_open > /dev/null 2>&1 ; then
transcodingLibs=" -L/usr/local/lib -liconv " transcodingLibs=" -L/usr/local/lib -liconv "
transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include " transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
fi fi
elif test -f "${XERCESCROOT}/lib/libxerces-c${VER}.so" ; then elif test -f "${XERCESCROOT}/lib/${SOLIBNAME}" ; then
if nm "${XERCESCROOT}/lib/libxerces-c${VER}.so" | \ if nm "${XERCESCROOT}/lib/${SOLIBNAME}" | \
grep XML_USE_LIBICONV > /dev/null 2>&1 ; then grep iconv_open > /dev/null 2>&1 ; then
transcodingLibs=" -L/usr/local/lib -liconv " transcodingLibs=" -L/usr/local/lib -liconv "
transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include " transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment