From fac2acdf0d6ed6ab52484c7cbf223358d82e5b4b Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 19 Sep 2009 18:32:45 +0000 Subject: [PATCH] 2009-09-19 20:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * bin/hb-mkdyn.sh * bin/postinst.sh % Deleted -fPIC option from dynlib link command. It's not needed if there are no .c input files. --- harbour/ChangeLog | 6 ++++++ harbour/bin/hb-mkdyn.sh | 2 +- harbour/bin/postinst.sh | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3d780d527e..d780017bee 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,12 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-09-19 20:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * bin/hb-mkdyn.sh + * bin/postinst.sh + % Deleted -fPIC option from dynlib link command. It's not needed + if there are no .c input files. + 2009-09-19 20:17 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * mpkg_tgz.sh * bin/postinst.sh diff --git a/harbour/bin/hb-mkdyn.sh b/harbour/bin/hb-mkdyn.sh index 0c69cc24b7..bea15a8351 100755 --- a/harbour/bin/hb-mkdyn.sh +++ b/harbour/bin/hb-mkdyn.sh @@ -148,7 +148,7 @@ else #FULLNAME="${BASE}-${VERSION}${SLIB_EXT}" #FULLNAME="${BASE}{SLIB_EXT}.${VERSION}" FULLNAME="${LIB_NAME}${SLIB_EXT}" - ${HB_CCPATH}${HB_CCPREFIX}gcc -shared -fPIC -o "${FULLNAME}" $OBJLST ${linker_options} ${HB_USER_DFLAGS} && \ + ${HB_CCPATH}${HB_CCPREFIX}gcc -shared -o "${FULLNAME}" $OBJLST ${linker_options} ${HB_USER_DFLAGS} && \ cd "${dir}" && \ mv -f "${OTMPDIR}/${FULLNAME}" "${DSTDIR}${FULLNAME}" fi diff --git a/harbour/bin/postinst.sh b/harbour/bin/postinst.sh index a18ae00686..55a35dfe83 100755 --- a/harbour/bin/postinst.sh +++ b/harbour/bin/postinst.sh @@ -95,7 +95,7 @@ then lnopt="-KPIC" fi [ "$HB_BUILD_OPTIM" = "no" ] || lnopt="-fast -xnolibmopt $lnopt" - sed -e "s/gcc -shared -fPIC/suncc -G ${lnopt} ${HB_ISAOPT}/g" \ + sed -e "s/gcc -shared/suncc -G ${lnopt} ${HB_ISAOPT}/g" \ "${hb_root}/bin/hb-mkdyn.sh" > "${hb_mkdyn}" && \ chmod 755 "${hb_mkdyn}" elif [ "${HB_PLATFORM}" = "sunos" ] || \