mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-01 19:37:45 +08:00
fixed compiling waring on MacOS
This commit is contained in:
parent
cf6aab9e9b
commit
95883c415f
@ -35,18 +35,18 @@ endif
|
||||
ifeq ($(findstring clang, $(CC)), clang)
|
||||
CFLAGS += -Wstrict-prototypes \
|
||||
-Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang)
|
||||
CFLAGS += -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
ifeq ($(findstring gcc, $(CC)), clang++)
|
||||
CFLAGS += -Wstrict-prototypes \
|
||||
-Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
# For FreeBSD
|
||||
@ -58,7 +58,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
SYSLIB += -rdynamic
|
||||
UNIXTYPE = MACOSX
|
||||
endif
|
||||
|
@ -33,12 +33,12 @@ endif
|
||||
ifeq ($(findstring clang, $(CC)), clang)
|
||||
CFLAGS += -Wstrict-prototypes \
|
||||
-Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||
CFLAGS += -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
# For FreeBSD
|
||||
@ -50,7 +50,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
endif
|
||||
|
||||
|
@ -35,7 +35,7 @@ endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||
CFLAGS += -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
# For FreeBSD
|
||||
@ -48,7 +48,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
SYSLIB += -rdynamic
|
||||
UNIXTYPE = MACOSX
|
||||
RPATH = macos
|
||||
|
@ -58,12 +58,12 @@ endif
|
||||
ifeq ($(findstring clang, $(CC)), clang)
|
||||
CFLAGS += -Wstrict-prototypes \
|
||||
-Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||
CFLAGS += -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
# For FreeBSD
|
||||
@ -74,7 +74,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
endif
|
||||
|
||||
|
@ -88,7 +88,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof \
|
||||
-Wno-invalid-offsetof \
|
||||
-Wno-deprecated-declarations
|
||||
endif
|
||||
|
||||
|
@ -77,7 +77,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof \
|
||||
-Wno-invalid-offsetof \
|
||||
-Wno-unused-private-field
|
||||
UNIXTYPE = MACOSX
|
||||
shared_ldflags = -lacl_cpp -lprotocol -lacl -L/usr/lib -liconv -lz -lpthread
|
||||
|
@ -32,7 +32,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
SYSLIB += -liconv -rdynamic
|
||||
RPATH = macos
|
||||
|
@ -36,12 +36,12 @@ endif
|
||||
ifeq ($(findstring clang, $(CC)), clang)
|
||||
CFLAGS += -Wstrict-prototypes \
|
||||
-Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||
CFLAGS += -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
# For FreeBSD
|
||||
@ -53,7 +53,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
SYSLIB += -rdynamic
|
||||
UNIXTYPE = MACOSX
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user