Skip to content

Commit

Permalink
strip symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxb45 committed Feb 6, 2021
1 parent 3e8e9db commit c12e39a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ libremixdb.so : Makefile Makefile.common lib.h kv.h wh.h blkio.h sst.h xdb.h lib
$(eval ALLFLG := $(CSTD) $(EXTRA) $(FLG) -shared -fPIC)
$(eval ALLLIB := $(addprefix -l,$(LIB) $(LIB-$@)))
$(CCC) $(ALLFLG) -o $@ lib.c kv.c wh.c blkio.c sst.c xdb.c $(ALLLIB)
strip --strip-all --discard-all @remixdb.strip $@

sotest.out : sotest.c Makefile Makefile.common libremixdb.so remixdb.h
$(eval ALLFLG := $(CSTD) $(EXTRA) $(FLG))
Expand Down
16 changes: 16 additions & 0 deletions remixdb.strip
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-K remixdb_open
-K remixdb_open_compact
-K remixdb_close
-K remixdb_ref
-K remixdb_unref
-K remixdb_set
-K remixdb_del
-K remixdb_get
-K remixdb_probe
-K remixdb_iter_create
-K remixdb_iter_destroy
-K remixdb_iter_valid
-K remixdb_iter_seek
-K remixdb_iter_park
-K remixdb_iter_peek
-K remixdb_iter_skip

0 comments on commit c12e39a

Please sign in to comment.