You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
Index: Makefile |
|
--- Makefile.orig 2020-01-26 19:16:39.000000000 +0100 |
|
+++ Makefile 2020-01-27 09:42:40.069630000 +0100 |
|
@@ -1,25 +1,32 @@ |
|
-DEBUGFLAGS = -g -ggdb -O2 |
|
+DEBUGFLAGS = -O2 |
|
ifeq ($(DEBUG), 1) |
|
DEBUGFLAGS = -g -ggdb -O0 -pedantic |
|
endif |
|
|
|
# find the OS |
|
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
|
-CPPFLAGS = -Wall -Wno-unused-function $(DEBUGFLAGS) -fPIC -std=gnu99 -D_GNU_SOURCE |
|
+CPPFLAGS = -Wno-unused-function $(DEBUGFLAGS) -fPIC -std=gnu99 -D_GNU_SOURCE |
|
# CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc') |
|
|
|
# Compile flags for linux / osx |
|
ifeq ($(uname_S),Linux) |
|
CC=gcc |
|
LD=gcc |
|
- SHOBJ_CFLAGS ?= -fno-common -g -ggdb |
|
+ SHOBJ_CFLAGS ?= -fno-common |
|
SHOBJ_LDFLAGS ?= -shared -Wl,-Bsymbolic,-Bsymbolic-functions |
|
else |
|
+ifeq ($(uname_S),FreeBSD) |
|
+ CC=gcc |
|
+ LD=gcc |
|
+ SHOBJ_CFLAGS ?= -fno-common |
|
+ SHOBJ_LDFLAGS ?= -shared -Wl,-Bsymbolic,-Bsymbolic-functions |
|
+else |
|
CC=clang |
|
CFLAGS += -mmacosx-version-min=10.6 |
|
- SHOBJ_CFLAGS ?= -dynamic -fno-common -g -ggdb |
|
+ SHOBJ_CFLAGS ?= -dynamic -fno-common |
|
SHOBJ_LDFLAGS ?= -dylib -exported_symbol _RedisModule_OnLoad -macosx_version_min 10.6 |
|
endif |
|
+endif |
|
|
|
ROOT=$(shell pwd) |
|
# Flags for preprocessor
|
|
|