summaryrefslogtreecommitdiff
path: root/libopenjpeg/Makefile.am
diff options
context:
space:
mode:
authorWinfried <szukw000@arcor.de>2010-12-14 03:33:31 +0000
committerWinfried <szukw000@arcor.de>2010-12-14 03:33:31 +0000
commit398b3f08b03e5469e703d251ed58b77bafdf43f2 (patch)
tree50e78c25ad2c1c3fbc92d571f3edf4c22013c37d /libopenjpeg/Makefile.am
parent1dd92890d7e25b843abd80c047c4fd4955b40b2c (diff)
Adapted Makefile.am/Makefile.nix to build choice: shared xor static
Diffstat (limited to 'libopenjpeg/Makefile.am')
-rw-r--r--libopenjpeg/Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/libopenjpeg/Makefile.am b/libopenjpeg/Makefile.am
index c93f506b..30a2b815 100644
--- a/libopenjpeg/Makefile.am
+++ b/libopenjpeg/Makefile.am
@@ -30,6 +30,13 @@ dos2unix:
COMPILERFLAGS = -Wall -O3 -ffast-math -std=c99
+if with_sharedlibs
+COMPILERFLAGS += -DOPJ_EXPORTS
+else
+COMPILERFLAGS += -DOPJ_STATIC
+libopenjpeg_la_LDFLAGS += -static
+endif
+
CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
headerdir = openjpeg-$(MAJOR).$(MINOR)