mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +01:00
add fPIC compiler option
This commit is contained in:
parent
6b4d249cb1
commit
b20085903e
BIN
._Makefile
BIN
._Makefile
Binary file not shown.
2
Makefile
2
Makefile
@ -31,7 +31,7 @@ plugins: $(PLUGINS)
|
|||||||
|
|
||||||
%.$(EXT): $(PLUGINSDEP)
|
%.$(EXT): $(PLUGINSDEP)
|
||||||
for file in $(wildcard plugins/$(basename $@)/*.c) ; do\
|
for file in $(wildcard plugins/$(basename $@)/*.c) ; do\
|
||||||
$(CC) $(CFLAGS) -c $$file -o $$file.o; \
|
$(CC) -fPIC $(CFLAGS) -c $$file -o $$file.o; \
|
||||||
done
|
done
|
||||||
$(CC) $(CFLAGS) $(PLUGINLIBS) -shared -o $(BUILDIRD)/plugins/$(basename $@).$(EXT) \
|
$(CC) $(CFLAGS) $(PLUGINLIBS) -shared -o $(BUILDIRD)/plugins/$(basename $@).$(EXT) \
|
||||||
$(PLUGINSDEP) plugins/$(basename $@)/*.c.o
|
$(PLUGINSDEP) plugins/$(basename $@)/*.c.o
|
||||||
|
Loading…
Reference in New Issue
Block a user