components/desktop/firefox/patches/firefox-36-xpopen.patch
author Stacy Yeh <stacy.yeh@oracle.com>
Tue, 01 Mar 2016 12:56:53 -0800
changeset 5527 611b2d6efdfe
parent 5255 components/desktop/firefox/patches/firefox31-gnu-130-xopen.patch@cea0e462549a
child 7309 2655ef11c386
permissions -rw-r--r--
21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes 22757279 Update Thunderbird to version 38.5.0 22613259 thunderbird lightning extension is missing l10n after moved to userland 21133062 problem in TBIRD/MAILER

Prevent:
error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications  and pre-2001 POSIX applications

diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -9759,6 +9759,8 @@
 cross_compiling=$ac_cv_prog_cc_cross
 
     else
+       CFLAGS="$CFLAGS -D_XPG6 -D__EXTENSIONS__"
+       CXXFLAGS="$CXXFLAGS -D_XPG6 -D__EXTENSIONS__"
        LDFLAGS="$LDFLAGS -Wl,-z,ignore -Wl,-R,'\$\$ORIGIN:\$\$ORIGIN/..' -Wl,-z,lazyload -Wl,-z,combreloc -Wl,-z,muldefs"
        LIBS="-lc $LIBS"
        MKSHLIB_FORCE_ALL='-Wl,-z -Wl,allextract'