emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/ns-gitlab-ci 29121a3: Fix Objective-C C99 build problem


From: Alan Third
Subject: scratch/ns-gitlab-ci 29121a3: Fix Objective-C C99 build problem
Date: Thu, 27 Aug 2020 15:52:15 -0400 (EDT)

branch: scratch/ns-gitlab-ci
commit 29121a3215cc54270b32685f203d3f8d88a7b4af
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    Fix Objective-C C99 build problem
    
    * configure.ac (NS_IMPL_GNUSTEP): GCC appears to need to be told to
    use C99 when compiling Objective-C.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 9a51ea1..b2dc713 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3934,7 +3934,7 @@ if test "${HAVE_NS}" = "yes"; then
       # FIXME: are all these flags really needed?  Document here why.  */
       GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing 
-I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
       ## Extra CFLAGS applied to src/*.m files.
-      GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import 
-fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 
-DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
+      GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import 
-fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 
-DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE -std=c99"
     fi
   fi
   OTHER_FILES=ns-app



reply via email to

[Prev in Thread] Current Thread [Next in Thread]