mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 03:47:53 +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)
|
ifeq ($(findstring clang, $(CC)), clang)
|
||||||
CFLAGS += -Wstrict-prototypes \
|
CFLAGS += -Wstrict-prototypes \
|
||||||
-Wno-invalid-source-encoding \
|
-Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(findstring clang++, $(CC)), clang)
|
ifeq ($(findstring clang++, $(CC)), clang)
|
||||||
CFLAGS += -Wno-invalid-source-encoding \
|
CFLAGS += -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(findstring gcc, $(CC)), clang++)
|
ifeq ($(findstring gcc, $(CC)), clang++)
|
||||||
CFLAGS += -Wstrict-prototypes \
|
CFLAGS += -Wstrict-prototypes \
|
||||||
-Wno-invalid-source-encoding \
|
-Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# For FreeBSD
|
# For FreeBSD
|
||||||
@ -58,7 +58,7 @@ endif
|
|||||||
# For Darwin
|
# For Darwin
|
||||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
SYSLIB += -rdynamic
|
SYSLIB += -rdynamic
|
||||||
UNIXTYPE = MACOSX
|
UNIXTYPE = MACOSX
|
||||||
endif
|
endif
|
||||||
|
@ -33,12 +33,12 @@ endif
|
|||||||
ifeq ($(findstring clang, $(CC)), clang)
|
ifeq ($(findstring clang, $(CC)), clang)
|
||||||
CFLAGS += -Wstrict-prototypes \
|
CFLAGS += -Wstrict-prototypes \
|
||||||
-Wno-invalid-source-encoding \
|
-Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||||
CFLAGS += -Wno-invalid-source-encoding \
|
CFLAGS += -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# For FreeBSD
|
# For FreeBSD
|
||||||
@ -50,7 +50,7 @@ endif
|
|||||||
# For Darwin
|
# For Darwin
|
||||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
UNIXTYPE = MACOSX
|
UNIXTYPE = MACOSX
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||||
CFLAGS += -Wno-invalid-source-encoding \
|
CFLAGS += -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# For FreeBSD
|
# For FreeBSD
|
||||||
@ -48,7 +48,7 @@ endif
|
|||||||
# For Darwin
|
# For Darwin
|
||||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
SYSLIB += -rdynamic
|
SYSLIB += -rdynamic
|
||||||
UNIXTYPE = MACOSX
|
UNIXTYPE = MACOSX
|
||||||
RPATH = macos
|
RPATH = macos
|
||||||
|
@ -58,12 +58,12 @@ endif
|
|||||||
ifeq ($(findstring clang, $(CC)), clang)
|
ifeq ($(findstring clang, $(CC)), clang)
|
||||||
CFLAGS += -Wstrict-prototypes \
|
CFLAGS += -Wstrict-prototypes \
|
||||||
-Wno-invalid-source-encoding \
|
-Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||||
CFLAGS += -Wno-invalid-source-encoding \
|
CFLAGS += -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# For FreeBSD
|
# For FreeBSD
|
||||||
@ -74,7 +74,7 @@ endif
|
|||||||
# For Darwin
|
# For Darwin
|
||||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
UNIXTYPE = MACOSX
|
UNIXTYPE = MACOSX
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ endif
|
|||||||
# For Darwin
|
# For Darwin
|
||||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof \
|
-Wno-invalid-offsetof \
|
||||||
-Wno-deprecated-declarations
|
-Wno-deprecated-declarations
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ endif
|
|||||||
# For Darwin
|
# For Darwin
|
||||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof \
|
-Wno-invalid-offsetof \
|
||||||
-Wno-unused-private-field
|
-Wno-unused-private-field
|
||||||
UNIXTYPE = MACOSX
|
UNIXTYPE = MACOSX
|
||||||
shared_ldflags = -lacl_cpp -lprotocol -lacl -L/usr/lib -liconv -lz -lpthread
|
shared_ldflags = -lacl_cpp -lprotocol -lacl -L/usr/lib -liconv -lz -lpthread
|
||||||
|
@ -32,7 +32,7 @@ endif
|
|||||||
# For Darwin
|
# For Darwin
|
||||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
UNIXTYPE = MACOSX
|
UNIXTYPE = MACOSX
|
||||||
SYSLIB += -liconv -rdynamic
|
SYSLIB += -liconv -rdynamic
|
||||||
RPATH = macos
|
RPATH = macos
|
||||||
|
@ -36,12 +36,12 @@ endif
|
|||||||
ifeq ($(findstring clang, $(CC)), clang)
|
ifeq ($(findstring clang, $(CC)), clang)
|
||||||
CFLAGS += -Wstrict-prototypes \
|
CFLAGS += -Wstrict-prototypes \
|
||||||
-Wno-invalid-source-encoding \
|
-Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||||
CFLAGS += -Wno-invalid-source-encoding \
|
CFLAGS += -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# For FreeBSD
|
# For FreeBSD
|
||||||
@ -53,7 +53,7 @@ endif
|
|||||||
# For Darwin
|
# For Darwin
|
||||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||||
-Wno-extended-offsetof
|
-Wno-invalid-offsetof
|
||||||
SYSLIB += -rdynamic
|
SYSLIB += -rdynamic
|
||||||
UNIXTYPE = MACOSX
|
UNIXTYPE = MACOSX
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user