Skip to content

Commit

Permalink
allow overwrite CC for linking
Browse files Browse the repository at this point in the history
  • Loading branch information
z3APA3A committed Nov 20, 2020
1 parent cf58e62 commit d88c927
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile.Linux
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CC = gcc

CFLAGS = -g -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER
COUT = -o
LN = gcc
LN = $(CC)
DCFLAGS =
LDFLAGS = -fPIE -O2 -fno-strict-aliasing -pthread
DLFLAGS = -shared
Expand Down
2 changes: 1 addition & 1 deletion Makefile.Solaris
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BUILDDIR = ../bin/
CC = cc
CFLAGS = -xO3 -c -D_SOLARIS -D_THREAD_SAFE -DGETHOSTBYNAME_R -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
COUT = -o ./
LN = cc
LN = $(CC)
LDFLAGS = -xO3
DCFLAGS = -fPIC
DLFLAGS = -shared
Expand Down
2 changes: 1 addition & 1 deletion Makefile.Solaris-gcc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BUILDDIR = ../bin/
CC = gcc
CFLAGS = -O2 -fno-strict-aliasing -c -D_SOLARIS -D_THREAD_SAFE -DGETHOSTBYNAME_R -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
COUT = -o ./
LN = gcc
LN = $(CC)
LDFLAGS = -O3
DCFLAGS = -fPIC
DLFLAGS = -shared
Expand Down
2 changes: 1 addition & 1 deletion Makefile.llvm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BUILDDIR = ../bin/
CC = clang
CFLAGS = -O2 -fno-strict-aliasing -c -pthread -static -DWITH_STD_MALLOC -DNOIPV6
COUT = -o
LN = clang
LN = $(CC)
LDFLAGS = -O2 -fno-strict-aliasing -static -s
DLFLAGS = -shared
DLSUFFICS = .dll
Expand Down
2 changes: 1 addition & 1 deletion Makefile.openwrt-mips
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CC = mips-openwrt-linux-gcc

CFLAGS = -g -O2 -fno-strict-aliasing -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER
COUT = -o
LN = mips-openwrt-linux-gcc
LN = $(CC)
DCFLAGS = -fPIC
LDFLAGS = -O2 -fno-strict-aliasing -pthread -s
DLFLAGS = -shared
Expand Down
2 changes: 1 addition & 1 deletion Makefile.unix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CC = gcc
# you may need -L/usr/pkg/lib for older NetBSD versions
CFLAGS = -g -O2 -fno-strict-aliasing -c -pthread -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
COUT = -o
LN = gcc
LN = $(CC)
LDFLAGS = -O2 -fno-strict-aliasing -pthread
# -lpthreads may be reuqired on some platforms instead of -pthreads
# -ldl or -lld may be required for some platforms
Expand Down

0 comments on commit d88c927

Please sign in to comment.