Skip to content

Commit d392b4d

Browse files
committed
modify:use clang instead c++ build for freebsd
1 parent 0f6fd7d commit d392b4d

7 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎XEngine_Source/StorageModule_APIHelp/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ else ifeq ($(PLATFORM),freebsd)
5353
LIBFLAG = -shared
5454
LIBEX += -lrt -ldl -lpthread
5555
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
56+
CC = clang++ -Wall -std=c++20 -fPIC
5657
endif
5758

5859
all:$(OBJECTS)

‎XEngine_Source/StorageModule_BTorrent/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ else ifeq ($(PLATFORM),freebsd)
5959
LIBFLAG = -shared
6060
LIBEX += -lrt -ldl -lpthread
6161
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
62+
CC = clang++ -Wall -std=c++20 -fPIC
6263
endif
6364

6465
all:$(OBJECTS)

‎XEngine_Source/StorageModule_Config/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ else ifeq ($(PLATFORM),freebsd)
5353
LIBFLAG = -shared
5454
LIBEX += -lrt -ldl -lpthread
5555
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
56+
CC = clang++ -Wall -std=c++20 -fPIC
5657
endif
5758

5859

‎XEngine_Source/StorageModule_Database/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ else ifeq ($(PLATFORM),freebsd)
5353
LIBFLAG = -shared
5454
LIBEX += -lrt -ldl -lpthread
5555
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
56+
CC = clang++ -Wall -std=c++20 -fPIC
5657
endif
5758

5859
all:$(OBJECTS)

‎XEngine_Source/StorageModule_Protocol/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ else ifeq ($(PLATFORM),freebsd)
5353
LIBFLAG = -shared
5454
LIBEX += -lrt -ldl -lpthread
5555
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
56+
CC = clang++ -Wall -std=c++20 -fPIC
5657
endif
5758

5859
all:$(OBJECTS)

‎XEngine_Source/StorageModule_Session/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ else ifeq ($(PLATFORM),freebsd)
5353
LIBFLAG = -shared
5454
LIBEX += -lrt -ldl -lpthread
5555
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
56+
CC = clang++ -Wall -std=c++20 -fPIC
5657
endif
5758

5859

‎XEngine_Source/XEngine_StorageApp/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ else ifeq ($(PLATFORM),freebsd)
5151
LIBFLAG = -shared
5252
LIBEX += -lrt -ldl -lpthread
5353
LOADBIN = -Wl,-rpath=./,--disable-new-dtags
54+
CC = clang++ -Wall -std=c++20 -fPIC
5455
endif
5556

5657
all:$(OBJECTS)

0 commit comments

Comments
 (0)