Patches to compile on FreeBSD

This commit is contained in:
Poul-Henning Kamp
2023-08-11 20:38:14 +00:00
parent df92df7462
commit 4ba2b91e99
6 changed files with 36 additions and 5 deletions
+7 -1
View File
@@ -1,5 +1,5 @@
#CC=i386-pc-linux-gcc
CC=gcc
#CC=gcc
AR=ar
TARGET := $(shell uname)
@@ -25,6 +25,12 @@ endif
EXEC=libusbhxcfe.so
ifeq ($(TARGET), FreeBSD)
CC=cc
CFLAGS += -fPIC -Wl,-Map,foo.map
LDFLAGS += -lc -lm -ldl
endif
ifeq ($(TARGET), Linux)
CFLAGS += -fPIC -Wl,-Map,foo.map
LDFLAGS += -lc -lm -ldl