summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2011-08-12 10:26:26 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2011-08-12 10:26:26 +1000
commit5fefe7df59a82ab0918ba5f826c6b9d3160bc709 (patch)
treec780885153adffdd677361e05e66889e4805c153 /ext
parenteda68bcdf7dbf32cd1e5be39c30d990c70303381 (diff)
downloadmongo-5fefe7df59a82ab0918ba5f826c6b9d3160bc709.tar.gz
Add "-fPIC" when building the compression module, plus a "clean" target.
Diffstat (limited to 'ext')
-rw-r--r--ext/compressors/bzip2_compress/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/compressors/bzip2_compress/Makefile b/ext/compressors/bzip2_compress/Makefile
index ed49899efb8..6f450efcac7 100644
--- a/ext/compressors/bzip2_compress/Makefile
+++ b/ext/compressors/bzip2_compress/Makefile
@@ -1,5 +1,5 @@
DEBUGFLAG = -g
-CFLAGS = $(DEBUGFLAG) -I../../../build_posix
+CFLAGS = $(DEBUGFLAG) -fPIC -I../../../build_posix
LIBRARIES = -lbz2
LDFLAGS = $(DEBUGFLAG) $(LIBRARIES)
@@ -7,3 +7,6 @@ all: bzip2_compress.so
bzip2_compress.so: bzip2_compress.o
gcc $(LDFLAGS) -shared -o bzip2_compress.so bzip2_compress.o
+
+clean:
+ rm -f bzip2_compress.o bzip2_compress.so