components/desktop/firefox/patches/firefox-36-xpopen.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Mon, 05 Sep 2016 05:00:46 -0700
branchs11u3-sru
changeset 7035 4c2f26e9d5ab
child 7364 1ac24a377555
permissions -rw-r--r--
24361911 Upgrade Firefox to version 45.4.0 ESR 23033044 firefox needs to be built with "--with-intl-api" option 24708365 problem in FIREFOX/BROWSER 24708614 problem in FIREFOX/BROWSER

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'