also don't redefine PIC in Makefiles
# supposedly we can avoid -fPIC on armv5 for slightly better performace?
if [ "$ARCH" != "arm" -o "$have_armv6" = "yes" ]; then
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -fPIC"
+else
+ PLUGIN_CFLAGS="$PLUGIN_CFLAGS -fno-PIC"
fi
case "$platform" in
-CFLAGS += -ggdb -fPIC -O2 # -Wall\r
+CFLAGS += -ggdb -O2 # -Wall\r
\r
include ../../config.mak\r
\r
all: ../../config.mak $(TARGET)
+CFLAGS += $(PLUGIN_CFLAGS)
+
$(TARGET): spunull.c
- $(CC) $(CFLAGS) -shared -fPIC -ggdb -O2 -o $@ $^
+ $(CC) $(CFLAGS) -shared -ggdb -O2 -o $@ $^
ln -fs $(PLUGINDIR)/$(TARGET) ../
clean: