mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-03 11:01:03 -08:00
In many platforms, the -fPIC flag is required to make DLLs.
This commit is contained in:
parent
6e00a44501
commit
32d82fe319
3 changed files with 8 additions and 4 deletions
2
src/aclocal.m4
vendored
2
src/aclocal.m4
vendored
|
|
@ -121,6 +121,7 @@ SHAREDEXT='so'
|
|||
SHAREDPREFIX='lib'
|
||||
LIBPREFIX='lib'
|
||||
LIBEXT='a'
|
||||
PICFLAG='-fPIC'
|
||||
case "${host_os}" in
|
||||
# libdir may have a dollar expression inside
|
||||
linux*)
|
||||
|
|
@ -167,6 +168,7 @@ CFLAGS="${CFLAGS} -D${thehost}"
|
|||
AC_MSG_CHECKING(for ld flags when building shared libraries)
|
||||
if test "${shared}" = "yes"; then
|
||||
AC_MSG_RESULT([${SHARED_LDFLAGS}])
|
||||
CFLAGS="${CFLAGS} ${PICFLAG}"
|
||||
else
|
||||
shared="no";
|
||||
AC_MSG_RESULT(cannot build)
|
||||
|
|
|
|||
6
src/configure
vendored
6
src/configure
vendored
|
|
@ -3836,6 +3836,7 @@ SHAREDEXT='so'
|
|||
SHAREDPREFIX='lib'
|
||||
LIBPREFIX='lib'
|
||||
LIBEXT='a'
|
||||
PICFLAG='-fPIC'
|
||||
case "${host_os}" in
|
||||
# libdir may have a dollar expression inside
|
||||
linux*)
|
||||
|
|
@ -3884,6 +3885,7 @@ echo $ECHO_N "checking for ld flags when building shared libraries... $ECHO_C" >
|
|||
if test "${shared}" = "yes"; then
|
||||
echo "$as_me:$LINENO: result: ${SHARED_LDFLAGS}" >&5
|
||||
echo "${ECHO_T}${SHARED_LDFLAGS}" >&6
|
||||
CFLAGS="${CFLAGS} ${PICFLAG}"
|
||||
else
|
||||
shared="no";
|
||||
echo "$as_me:$LINENO: result: cannot build" >&5
|
||||
|
|
@ -5787,7 +5789,7 @@ else
|
|||
echo "${ECHO_T}configuring local copy" >&6
|
||||
test -d gmp && rm -rf gmp
|
||||
if mkdir gmp; then
|
||||
(destdir=`${PWDCMD}`; cd gmp;
|
||||
(destdir=`${PWDCMD}`; cd gmp; CC="${CC} ${PICFLAG}" \
|
||||
$srcdir/gmp/configure --disable-shared --prefix=$bindir \
|
||||
--infodir=${destdir}/doc --includedir=${destdir}/h \
|
||||
--libdir=${destdir} --build=${build} --host=${host} $gmp_flags)
|
||||
|
|
@ -5803,7 +5805,7 @@ elif test "${local_boehm}" = "no" ; then
|
|||
echo "${ECHO_T}configuring local copy" >&6
|
||||
test -d gc && rm -rf gc
|
||||
if mkdir gc; then
|
||||
(destdir=`${PWDCMD}`; cd gc;
|
||||
(destdir=`${PWDCMD}`; cd gc; CC="${CC} ${PICFLAG}" \
|
||||
$srcdir/gc/configure --disable-threads --disable-shared --prefix=$bindir \
|
||||
--includedir=${destdir}/h --libdir=${destdir} --build=${build} \
|
||||
--host=${host})
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ else
|
|||
AC_MSG_RESULT(configuring local copy)
|
||||
test -d gmp && rm -rf gmp
|
||||
if mkdir gmp; then
|
||||
(destdir=`${PWDCMD}`; cd gmp;
|
||||
(destdir=`${PWDCMD}`; cd gmp; CC="${CC} ${PICFLAG}" \
|
||||
$srcdir/gmp/configure --disable-shared --prefix=$bindir \
|
||||
--infodir=${destdir}/doc --includedir=${destdir}/h \
|
||||
--libdir=${destdir} --build=${build} --host=${host} $gmp_flags)
|
||||
|
|
@ -330,7 +330,7 @@ elif test "${local_boehm}" = "no" ; then
|
|||
AC_MSG_RESULT(configuring local copy)
|
||||
test -d gc && rm -rf gc
|
||||
if mkdir gc; then
|
||||
(destdir=`${PWDCMD}`; cd gc;
|
||||
(destdir=`${PWDCMD}`; cd gc; CC="${CC} ${PICFLAG}" \
|
||||
$srcdir/gc/configure --disable-threads --disable-shared --prefix=$bindir \
|
||||
--includedir=${destdir}/h --libdir=${destdir} --build=${build} \
|
||||
--host=${host})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue