fix for creation of shared libraries under AIX with gcc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
19
configure
vendored
19
configure
vendored
@@ -43720,8 +43720,15 @@ EOF
|
|||||||
*-*-aix* )
|
*-*-aix* )
|
||||||
if test "x$GCC" = "xyes"; then
|
if test "x$GCC" = "xyes"; then
|
||||||
PIC_FLAG=""
|
PIC_FLAG=""
|
||||||
SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
|
|
||||||
SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
|
case "${BAKEFILE_HOST}" in
|
||||||
|
*-*-aix5* )
|
||||||
|
LD_EXPFULL="-Wl,-bexpfull"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
SHARED_LD_CC="\$(CC) -shared $(LD_EXPFULL) -o"
|
||||||
|
SHARED_LD_CXX="\$(CXX) -shared $(LD_EXPFULL) -o"
|
||||||
else
|
else
|
||||||
# Extract the first word of "makeC++SharedLib", so it can be a program name with args.
|
# Extract the first word of "makeC++SharedLib", so it can be a program name with args.
|
||||||
set dummy makeC++SharedLib; ac_word=$2
|
set dummy makeC++SharedLib; ac_word=$2
|
||||||
@@ -44434,11 +44441,7 @@ if test ${D}DEPSMODE = gcc ; then
|
|||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
elif test ${D}DEPSMODE = mwcc ; then
|
elif test ${D}DEPSMODE = mwcc ; then
|
||||||
${D}*
|
${D}* || exit ${D}?
|
||||||
status=${D}?
|
|
||||||
if test ${D}{status} != 0 ; then
|
|
||||||
exit ${D}{status}
|
|
||||||
fi
|
|
||||||
# Run mwcc again with -MM and redirect into the dep file we want
|
# Run mwcc again with -MM and redirect into the dep file we want
|
||||||
# NOTE: We can't use shift here because we need ${D}* to be valid
|
# NOTE: We can't use shift here because we need ${D}* to be valid
|
||||||
prevarg=
|
prevarg=
|
||||||
@@ -44459,7 +44462,7 @@ elif test ${D}DEPSMODE = mwcc ; then
|
|||||||
${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
|
${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
|
||||||
exit 0
|
exit 0
|
||||||
elif test ${D}DEPSMODE = unixcc; then
|
elif test ${D}DEPSMODE = unixcc; then
|
||||||
${D}* || exit
|
${D}* || exit ${D}?
|
||||||
# Run compiler again with deps flag and redirect into the dep file.
|
# Run compiler again with deps flag and redirect into the dep file.
|
||||||
# It doesn't work if the '-o FILE' option is used, but without it the
|
# It doesn't work if the '-o FILE' option is used, but without it the
|
||||||
# dependency file will contain the wrong name for the object. So it is
|
# dependency file will contain the wrong name for the object. So it is
|
||||||
|
Reference in New Issue
Block a user