File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
SHELL = /bin/sh
2
- CFLAGS = -g -Wall -pedantic -std=c99 @PKGS_CFLAGS@
2
+ CFLAGS = -g -Wall -pedantic -std=c99 @PKGS_CFLAGS@ @SYSTEM_CFLAGS@
3
3
LDFLAGS = @PKGS_LDFLAGS@
4
4
5
5
prefix = @prefix@
Original file line number Diff line number Diff line change @@ -25,6 +25,20 @@ prefix=/usr/local
25
25
if [ " $# " -eq 1 ] ; then prefix=$1 ; fi
26
26
echo " prefix=${prefix} "
27
27
28
+ SYSTEM_CFLAGS=
29
+ case $( uname) in
30
+ Linux )
31
+ SYSTEM_CFLAGS=-D_POSIX_C_SOURCE=200809L
32
+ SYSTEM_LDFLAGS=
33
+ ;;
34
+ OpenBSD )
35
+ SYSTEM_CFLAGS=
36
+ SYSTEM_LDFLAGS=
37
+ ;;
38
+ esac
39
+ echo " system: $( uname) "
40
+ echo " SYSTEM_CFLAGS=" ${SYSTEM_CFLAGS}
41
+
28
42
PKGS=" x11 xinerama xft"
29
43
for a in ${PKGS} ; do
30
44
check_pkg $a
42
56
-e " s|@prefix@|${prefix} |g" \
43
57
-e " s|@PKGS_CFLAGS@|${PKGS_CFLAGS} |g" \
44
58
-e " s|@PKGS_LDFLAGS@|${PKGS_LDFLAGS} |g" \
59
+ -e " s|@SYSTEM_CFLAGS@|${SYSTEM_CFLAGS} |g" \
45
60
Makefile.in >> Makefile
46
61
SRCS=$( sed -n ' /SRCS=/,/[^ ]/p' Makefile.in | sed -e ' s/SRCS=//' -e ' s/\\//' )
47
62
for a in ${SRCS} ; do
You can’t perform that action at this time.
0 commit comments