]> granicus.if.org Git - nethack/commitdiff
update sys/unix/hints/macosx10.10
authorPatR <rankin@nethack.org>
Sat, 30 Jul 2016 08:59:27 +0000 (01:59 -0700)
committerPatR <rankin@nethack.org>
Sat, 30 Jul 2016 08:59:27 +0000 (01:59 -0700)
On OSX, one of the XQuartz header files triggers a compiler warning
about using a gcc extension, resulting in a diagnostic for each of
the files compiled with the WANT_WIN_X11 set of CFLAGS.  Use the
same fix as hints/macosx10.8 already does.

sys/unix/hints/macosx10.10

index 222690349919a083c6603feb0fbc7d391e60c7c8..19737f0c1b5e77a1c1a3a211fcd49d140504ab4c 100644 (file)
@@ -5,11 +5,15 @@
 #
 #-PRE
 # Mac OS X (Darwin) hints file
-# This is for Mac OS X 10.10 or later.  If this doesn't work for some other
+# This is for Mac OS X 10.10 or later, and has been tested on 10.11
+# (El Capitan). If this doesn't work for some other
 # version of Mac OS X, make a new file for that OS, don't change this one.
 # And let us know about it.
 # Useful info: http://www.opensource.apple.com/darwinsource/index.html
 
+# You'll need to obtain and install XQuartz if you want X11 support.
+# (Attempting to run X11.app will describe where to get it.)
+
 # This hints file can build several different types of installations.
 # Edit the next section to match the type of build you need.
 
@@ -100,6 +104,8 @@ LFLAGS=-L/opt/X11/lib
 VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm
 POSTINSTALL+= bdftopcf win/X11/nh10.bdf > $(HACKDIR)/nh10.pcf; (cd $(HACKDIR); mkfontdir);
 CFLAGS += -DX11_GRAPHICS -I/opt/X11/include
+# avoid repeated complaints about _X_NONNULL(args...) in <X11/Xfuncproto.h>
+CFLAGS += -Wno-variadic-macros
 endif  # WANT_WIN_X11
 
 ifdef WANT_WIN_QT