diff --git a/polymer/eduke32/build/Makefile b/polymer/eduke32/build/Makefile index 660f25754..88c367fd9 100644 --- a/polymer/eduke32/build/Makefile +++ b/polymer/eduke32/build/Makefile @@ -356,7 +356,7 @@ $(OBJ)/%.$o: $(RSRC)/%.c libcache1d.so: $(SRC)/cache1d.c $(COMPILE_STATUS) - if $(COMPILER) -Wall -Wextra -DCACHE1D_COMPRESS_ONLY -shared $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi + if $(COMPILER) -Wall -Wextra -DCACHE1D_COMPRESS_ONLY -shared -fPIC $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi $(OBJ)/editor_banner.$o: $(RSRC)/editor_banner.c echo "#include " > $@ diff --git a/polymer/eduke32/build/src/cache1d.c b/polymer/eduke32/build/src/cache1d.c index 8fd9f8bce..08379e8c0 100644 --- a/polymer/eduke32/build/src/cache1d.c +++ b/polymer/eduke32/build/src/cache1d.c @@ -13,6 +13,7 @@ # include # include # include +# include # define BFILE FILE # define C1D_STATIC @@ -20,6 +21,7 @@ # define B_LITTLE32(x) (x) # define Bmemset memset # define Bmemcpy memcpy +# define Bassert assert # define bsize_t size_t #else // cache1d.o for EDuke32