projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3b6c35
)
Don't use -fPIC for static lib
author
Howard Chu
<hyc@symas.com>
Wed, 1 Oct 2014 20:00:03 +0000
(21:00 +0100)
committer
Howard Chu
<hyc@symas.com>
Wed, 1 Oct 2014 20:00:03 +0000
(21:00 +0100)
libraries/liblmdb/Makefile
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/Makefile
b/libraries/liblmdb/Makefile
index 25c1095466fe4eafbfff107d66f6e370380b3079..97b571747d723ac25bf405a05349e60b87808dde 100644
(file)
--- a/
libraries/liblmdb/Makefile
+++ b/
libraries/liblmdb/Makefile
@@
-50,9
+50,9
@@
test: all
liblmdb.a: mdb.o midl.o
ar rs $@ mdb.o midl.o
liblmdb.a: mdb.o midl.o
ar rs $@ mdb.o midl.o
-liblmdb.so: mdb.
o midl.
o
+liblmdb.so: mdb.
lo midl.l
o
# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
- $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.
o midl.
o $(SOLIBS)
+ $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.
lo midl.l
o $(SOLIBS)
mdb_stat: mdb_stat.o liblmdb.a
mdb_copy: mdb_copy.o liblmdb.a
mdb_stat: mdb_stat.o liblmdb.a
mdb_copy: mdb_copy.o liblmdb.a
@@
-66,10
+66,16
@@
mtest5: mtest5.o liblmdb.a
mtest6: mtest6.o liblmdb.a
mdb.o: mdb.c lmdb.h midl.h
mtest6: mtest6.o liblmdb.a
mdb.o: mdb.c lmdb.h midl.h
- $(CC) $(CFLAGS)
-fPIC
$(CPPFLAGS) -c mdb.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c mdb.c
midl.o: midl.c midl.h
midl.o: midl.c midl.h
- $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) -c midl.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c midl.c
+
+mdb.lo: mdb.c lmdb.h midl.h
+ $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) -c mdb.c -o $@
+
+midl.lo: midl.c midl.h
+ $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) -c midl.c -o $@
%: %.o
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
%: %.o
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@