1
0
mirror of synced 2025-01-19 01:14:04 +01:00

Fix compilation warning by building xdiff with -fPIC option.

This commit is contained in:
Rolel 2024-12-30 13:45:07 +01:00
parent fb887630da
commit 7b23082019

View File

@ -1,7 +1,7 @@
CC = gcc -m32 -pthread
CFLAGS = -g -fPIC -m32 -Wall -Werror -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-function -D_GNU_SOURCE -Wno-char-subscripts
LD = g++ -m32
LDFLAGS = -Wl,-z,defs -rdynamic -static-libgcc -lc -ldl -lGL -lglut -lX11 -lSDL2 -lm -lpthread -shared -nostdlib -lasound -L./src/libxdiff -lxdiff
LD = g++ -m32
LDFLAGS = -Wl,-z,defs -rdynamic -static-libgcc -lc -ldl -lGL -lglut -lX11 -lSDL2 -lm -lpthread -shared -nostdlib -lasound -L./src/libxdiff -lxdiff
BUILD = build
@ -24,7 +24,7 @@ libxdiff.a: $(XDIFF_OBJS)
ar rcs src/libxdiff/libxdiff.a $(XDIFF_OBJS)
src/libxdiff/xdiff/%.o: src/libxdiff/xdiff/%.c
$(CC) -DHAVE_CONFIG_H -c $< -o $@
$(CC) -DHAVE_CONFIG_H -fPIC -c $< -o $@
lindbergh.so: $(OBJS)
mkdir -p $(BUILD)