Subject: CVS commit: pkgsrc
From: Alistair G. Crooks
Date: 2002-09-04 16:47:42
Message id: 20020904144742.C52F5B42C@cvs.netbsd.org

Log Message:
Apply patches from Lubomir Sedlacik <salo@Xtrmntr.org> in PR 18115 to
generalise the linker flags used to export symbols by setting them on
a per-OS basis.

> many packages force -Wl,-export-dynamic which is not portable outside GNU ld
> and cause problems e.g. on Solaris.  some of these packages use if
> conditionals either only for NetBSD or except SunOS, but the state is not
> coherent and it may complicate later when support for new OS is added to
> pkgsrc (e.g. ongoing work on HP-UX support).
>
> jlam proposed the following framework in discussion on tech-pkg:
>
>   http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html
>
> now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining
> -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable
> values.  packages should be converted to this framework by:
>
> 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with:
>
>    LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
>
> 2) for use in patchfiles, add this variable to MAKE_ENV if needed:
>
>    MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS}
>
> 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch
>    files with:
>
>    $(EXPORT_SYMBOLS_LDFLAGS)

Files:
RevisionActionfile
1.8modifypkgsrc/audio/arts/Makefile
1.16modifypkgsrc/graphics/dx/Makefile
1.5modifypkgsrc/graphics/kdegraphics3/Makefile
1.4modifypkgsrc/misc/kdeutils3/Makefile
1.2modifypkgsrc/misc/koffice/Makefile.common
1.35modifypkgsrc/www/galeon/Makefile
1.26modifypkgsrc/www/php4/Makefile
1.18modifypkgsrc/www/php4/Makefile.module
1.12modifypkgsrc/www/php4/distinfo
1.8modifypkgsrc/www/php4/patches/patch-aa