components/desktop/firefox/patches/firefox-36-xpopen.patch
changeset 5527 611b2d6efdfe
parent 5255 cea0e462549a
child 7309 2655ef11c386
equal deleted inserted replaced
5526:570ac9aab8b2 5527:611b2d6efdfe
       
     1 Prevent:
       
     2 error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications  and pre-2001 POSIX applications
       
     3 
       
     4 diff --git a/configure b/configure
       
     5 --- a/configure
       
     6 +++ b/configure
       
     7 @@ -9759,6 +9759,8 @@
       
     8  cross_compiling=$ac_cv_prog_cc_cross
       
     9  
       
    10      else
       
    11 +       CFLAGS="$CFLAGS -D_XPG6 -D__EXTENSIONS__"
       
    12 +       CXXFLAGS="$CXXFLAGS -D_XPG6 -D__EXTENSIONS__"
       
    13         LDFLAGS="$LDFLAGS -Wl,-z,ignore -Wl,-R,'\$\$ORIGIN:\$\$ORIGIN/..' -Wl,-z,lazyload -Wl,-z,combreloc -Wl,-z,muldefs"
       
    14         LIBS="-lc $LIBS"
       
    15         MKSHLIB_FORCE_ALL='-Wl,-z -Wl,allextract'