Skip to content

Commit

Permalink
Update hints files.
Browse files Browse the repository at this point in the history
  • Loading branch information
k21971 committed Dec 10, 2024
1 parent f7d3c1a commit b4d7aa5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sys/unix/hints/linux-debug
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ CFLAGS+=-DSERVER_LOCATION=\"au.hardfought.org\"
#CFLAGS+=-DSERVER_LOCATION=\"eu.hardfought.org\"
#CFLAGS+=-DSERVER_LOCATION=\"us.hardfought.org\"

#detection of clang vs gcc
CCISCLANG := $(shell echo `$(CC) --version` | grep clang)
ifneq "$(CCISCLANG)" ""
# clang-specific follows
CLANGGTEQ18 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 18)
ifeq "$(CLANGGTEQ18)" "1"
CFLAGS+=-Wno-deprecated-non-prototype
endif
endif # clang-specific ends here

LINK=$(CC)
# Only needed for GLIBC stack trace:
LFLAGS=-rdynamic
Expand Down
10 changes: 10 additions & 0 deletions sys/unix/hints/linux-debug.gha
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ CFLAGS+=-DSERVER_LOCATION=\"au.hardfought.org\"
#CFLAGS+=-DSERVER_LOCATION=\"eu.hardfought.org\"
#CFLAGS+=-DSERVER_LOCATION=\"us.hardfought.org\"

#detection of clang vs gcc
CCISCLANG := $(shell echo `$(CC) --version` | grep clang)
ifneq "$(CCISCLANG)" ""
# clang-specific follows
CLANGGTEQ18 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 18)
ifeq "$(CLANGGTEQ18)" "1"
CFLAGS+=-Wno-deprecated-non-prototype
endif
endif # clang-specific ends here

LINK=$(CC)
# Only needed for GLIBC stack trace:
LFLAGS=-rdynamic
Expand Down
10 changes: 10 additions & 0 deletions sys/unix/hints/tnnt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ CFLAGS+=-DSERVER_LOCATION=\"au.hardfought.org\"
#CFLAGS+=-DSERVER_LOCATION=\"eu.hardfought.org\"
#CFLAGS+=-DSERVER_LOCATION=\"us.hardfought.org\"

#detection of clang vs gcc
CCISCLANG := $(shell echo `$(CC) --version` | grep clang)
ifneq "$(CCISCLANG)" ""
# clang-specific follows
CLANGGTEQ18 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 18)
ifeq "$(CLANGGTEQ18)" "1"
CFLAGS+=-Wno-deprecated-non-prototype
endif
endif # clang-specific ends here

LINK=$(CC)
# Only needed for GLIBC stack trace:
LFLAGS=-rdynamic
Expand Down

0 comments on commit b4d7aa5

Please sign in to comment.