aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-10-03 21:14:36 -0500
committerIan Moffett <ian@osmora.org>2024-10-03 21:14:36 -0500
commit3106bb3a63a4faeef318cff7dfca60baba0e8a8f (patch)
tree08fe5d8d56b95d5e3563cda7b79a3e8313b439c1
parent56790e9a759238bb177d5e11d122d6411af8cb12 (diff)
build: Don't rely on GCC for compatibility
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7b93c45..deebcc6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,9 @@
CFILES_OTLIB = $(shell find lib/ -name "*.c")
CFLAGS_OTLIB = -pedantic -Ilib/include/ -fPIC
OTLIB_OBJ = $(CFILES_OTLIB:.c=.o)
-CC = gcc
libostp.so: $(OTLIB_OBJ)
- gcc -shared -o $@ $(OTLIB_OBJ)
+ $(CC) -shared -o $@ $(OTLIB_OBJ)
%.o: %.c
mkdir -p $(@D)