OSDN Git Service

configure: Add -D_GNU_SOURCE to CPPFLAGS on OS/2.
authorDiego Biurrun <diego@biurrun.de>
Thu, 26 May 2011 12:21:04 +0000 (14:21 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 26 May 2011 14:26:18 +0000 (16:26 +0200)
The flag is required for some C99 math functions to be declared.

configure

index c628ff6..d3e8764 100755 (executable)
--- a/configure
+++ b/configure
@@ -2477,6 +2477,7 @@ case $target_os in
     os/2*)
         ln_s="cp -f"
         objformat="aout"
+        add_cppflags -D_GNU_SOURCE
         add_ldflags -Zomf -Zbin-files -Zargs-wild -Zmap
         SHFLAGS='$(SUBDIR)$(NAME).def -Zdll -Zomf'
         FFSERVERLDFLAGS=""