summaryrefslogtreecommitdiff
path: root/codec/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'codec/Makefile.am')
-rw-r--r--codec/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/codec/Makefile.am b/codec/Makefile.am
index f856a5fa..b75b4b4b 100644
--- a/codec/Makefile.am
+++ b/codec/Makefile.am
@@ -1,7 +1,9 @@
COMPILERFLAGS = -Wall
-if with_staticlibs
-COMPILERFLAGS += -static
+if with_sharedlibs
+COMPILERFLAGS += -DOPJ_EXPORTS
+else
+COMPILERFLAGS += -DOPJ_STATIC
endif
USERLIBS = -lm