mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-3 changed the names of the shared libs variables etc.
X-SVN-Rev: 2555
This commit is contained in:
parent
ec831ea5a9
commit
87eb24c3ac
3 changed files with 201 additions and 156 deletions
|
@ -8,8 +8,13 @@ GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
|
|||
GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
|
||||
## Flags for position independent code
|
||||
PICFLAGS = -fPIC
|
||||
PICCPPFLAGS = -DPIC
|
||||
SHAREDLIBCFLAGS = -fPIC
|
||||
SHAREDLIBCXXFLAGS = -fPIC
|
||||
SHAREDLIBCPPFLAGS = -DPIC
|
||||
|
||||
## Additional flags when building libraries
|
||||
LIBCPPFLAGS = -D_REENTRANT
|
||||
THREADSCPPFLAGS = -D_REENTRANT
|
||||
|
||||
## Commands to compile
|
||||
COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
|
||||
|
|
323
icu4c/source/configure
vendored
323
icu4c/source/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -100,7 +100,7 @@ fi
|
|||
|
||||
dnl Check whether to build shared libraries
|
||||
AC_ARG_ENABLE(shared,
|
||||
[ --enable-shared=[PKGS] build shared libraries [default=no]],
|
||||
[ --enable-shared=[PKGS] build shared libraries [default=yes]],
|
||||
[ case "${enableval}" in
|
||||
yes|"") ENABLE_SHARED=YES ;;
|
||||
no) ;;
|
||||
|
@ -123,6 +123,18 @@ AC_SUBST(ENABLE_STATIC)
|
|||
|
||||
AC_PROG_RANLIB
|
||||
|
||||
dnl Check whether to use the evil rpath or not
|
||||
AC_ARG_ENABLE(rpath,
|
||||
[ --enable-rpath use rpath when linking [default is only if necessary]],
|
||||
[ case "${enableval}" in
|
||||
yes|"") ENABLE_RPATH=YES ;;
|
||||
no) ;;
|
||||
*) ;;
|
||||
esac],
|
||||
[ENABLE_RPATH=NO]
|
||||
)
|
||||
AC_SUBST(ENABLE_RPATH)
|
||||
|
||||
threads=true
|
||||
|
||||
dnl Enable/disable threads
|
||||
|
@ -549,11 +561,16 @@ dnl END special
|
|||
|
||||
dnl Now that we're done using CPPFLAGS etc. for tests, we can change it
|
||||
dnl for build.
|
||||
|
||||
if test x$ENABLE_SHARED = xYES
|
||||
then
|
||||
CPPFLAGS="$CPPFLAGS \$(PICCPPFLAGS)"
|
||||
CFLAGS="$CFLAGS \$(PICFLAGS)"
|
||||
CXXFLAGS="$CXXFLAGS \$(PICFLAGS)"
|
||||
CPPFLAGS="$CPPFLAGS \$(SHAREDLIBCPPFLAGS)"
|
||||
CFLAGS="$CFLAGS \$(SHAREDLIBCFLAGS)"
|
||||
CXXFLAGS="$CXXFLAGS \$(SHAREDLIBCXXFLAGS)"
|
||||
fi
|
||||
if test $ICU_USE_THREADS -ne 0
|
||||
then
|
||||
CFLAGS="$CFLAGS \$(THREADSCPPFLAGS)"
|
||||
fi
|
||||
|
||||
if test "$ac_cv_lib_dld_shl_load" = "yes"; then
|
||||
|
|
Loading…
Add table
Reference in a new issue