diff options
author | kwm <kwm@FreeBSD.org> | 2010-10-03 04:56:00 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2010-10-03 04:56:00 +0800 |
commit | 5f89cc9bc263de7d2e47ea34c2459d156ac1f0c8 (patch) | |
tree | f6a4e59d9f42308e3e800985e8a241160b4a8363 /Mk | |
parent | de877c77c99509a81bae3de760ef70f1e82434ed (diff) | |
download | freebsd-ports-gnome-5f89cc9bc263de7d2e47ea34c2459d156ac1f0c8.tar.gz freebsd-ports-gnome-5f89cc9bc263de7d2e47ea34c2459d156ac1f0c8.tar.zst freebsd-ports-gnome-5f89cc9bc263de7d2e47ea34c2459d156ac1f0c8.zip |
Build glib12 and ports that depend on it with -std=gnu89.
glib12 and ports that use glib12 fail to link when build with a C99 compiler.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gnome.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index f5b3b4e408d0..e5f431cfbdf2 100644 --- a/Mk/bsd.gnome.mk +++ b/Mk/bsd.gnome.mk @@ -709,6 +709,11 @@ ltasneededhack_PRE_PATCH= if [ -f ${WRKDIR}/gnome-libtool ]; then \ ${WRKDIR}/gnome-libtool; \ fi +# Set USE_CSTD for all ports that depend on glib12 +.if defined(_USE_GNOME) && !empty(_USE_GNOME:Mglib12) +USE_CSTD= gnu89 +.endif + # Then traverse through all components, check which of them # exist in ${_USE_GNOME} and set variables accordingly .ifdef _USE_GNOME |