summaryrefslogtreecommitdiff
path: root/codec/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'codec/Makefile.am')
-rw-r--r--codec/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/codec/Makefile.am b/codec/Makefile.am
index 5db41850..f856a5fa 100644
--- a/codec/Makefile.am
+++ b/codec/Makefile.am
@@ -1,4 +1,9 @@
-COMPILERFLAGS = -Wall -static
+COMPILERFLAGS = -Wall
+
+if with_staticlibs
+COMPILERFLAGS += -static
+endif
+
USERLIBS = -lm
INCLUDES = -I.. -I. -I../libopenjpeg -I../common