mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-29 18:37:41 +08:00
change compiling flag "-Wno-extended-offsetof" to "-Wno-invalid-offsetof" for clang
This commit is contained in:
parent
8fb50aa0e6
commit
79317f0965
@ -28,7 +28,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
|
||||
endif
|
||||
|
@ -28,7 +28,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
|
||||
endif
|
||||
|
@ -31,7 +31,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
|
||||
endif
|
||||
|
@ -31,7 +31,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
|
||||
endif
|
||||
|
@ -30,7 +30,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(OSNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
RPATH = macos
|
||||
SYSLIB += -liconv -rdynamic
|
||||
|
@ -30,7 +30,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(OSNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
RPATH = macos
|
||||
SYSLIB += -liconv -rdynamic
|
||||
|
@ -57,7 +57,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(OSNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
SYSLIB += -liconv -rdynamic
|
||||
RPATH = macos
|
||||
|
@ -30,7 +30,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(OSNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
RPATH = macos
|
||||
SYSLIB += -liconv -rdynamic
|
||||
|
@ -31,7 +31,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
|
||||
|
@ -30,7 +30,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(OSNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
RPATH = macos
|
||||
SYSLIB += -liconv -rdynamic
|
||||
|
@ -30,7 +30,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(OSNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
RPATH = macos
|
||||
SYSLIB += -liconv -rdynamic
|
||||
|
@ -30,7 +30,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(OSNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
RPATH = macos
|
||||
SYSLIB += -liconv -rdynamic
|
||||
|
@ -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
|
||||
SYSLIB += -liconv -rdynamic
|
||||
endif
|
||||
|
@ -39,7 +39,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
|
||||
|
@ -31,7 +31,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
|
||||
|
@ -31,7 +31,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
|
||||
endif
|
||||
|
@ -39,7 +39,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
|
||||
|
@ -39,7 +39,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
|
||||
|
@ -31,7 +31,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
|
||||
|
@ -31,7 +31,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
|
||||
|
@ -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
|
||||
|
||||
|
@ -28,12 +28,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
|
||||
@ -45,7 +45,7 @@ endif
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
|
||||
-Wno-extended-offsetof
|
||||
-Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
endif
|
||||
|
||||
|
@ -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
|
||||
|
@ -32,12 +32,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
|
||||
@ -49,7 +49,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
|
||||
|
@ -44,7 +44,7 @@ endif
|
||||
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-extended-offsetof
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
endif
|
||||
|
||||
|
@ -39,7 +39,7 @@ endif
|
||||
|
||||
#For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-extended-offsetof
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
endif
|
||||
|
||||
|
@ -25,7 +25,7 @@ ifeq ($(CC),)
|
||||
endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||
CFLAGS += -Wno-invalid-source-encoding -Wno-extended-offsetof
|
||||
CFLAGS += -Wno-invalid-source-encoding -Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
#Find system type.
|
||||
|
@ -25,7 +25,7 @@ ifeq ($(CC),)
|
||||
endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||
CFLAGS += -Wno-invalid-source-encoding -Wno-extended-offsetof
|
||||
CFLAGS += -Wno-invalid-source-encoding -Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
#Find system type.
|
||||
|
@ -25,7 +25,7 @@ ifeq ($(CC),)
|
||||
endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||
CFLAGS += -Wno-invalid-source-encoding -Wno-extended-offsetof
|
||||
CFLAGS += -Wno-invalid-source-encoding -Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
#Find system type.
|
||||
|
@ -25,7 +25,7 @@ ifeq ($(CC),)
|
||||
endif
|
||||
|
||||
ifeq ($(findstring clang++, $(CC)), clang++)
|
||||
CFLAGS += -Wno-invalid-source-encoding -Wno-extended-offsetof
|
||||
CFLAGS += -Wno-invalid-source-encoding -Wno-invalid-offsetof
|
||||
endif
|
||||
|
||||
#Find system type.
|
||||
|
@ -45,7 +45,7 @@ endif
|
||||
|
||||
# For Darwin
|
||||
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-extended-offsetof
|
||||
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-invalid-offsetof
|
||||
UNIXTYPE = MACOSX
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user