diff options
| author | Mike Wey | 2013-02-13 20:25:01 +0100 |
|---|---|---|
| committer | Mike Wey | 2013-02-13 20:25:01 +0100 |
| commit | 20c9f7c2cca015a8ed57f4380045e745009291d2 (patch) | |
| tree | 90faf64cade4fa1f75c438555bb3eb8942dda1db | |
| parent | e93afa5f6a505e75327722aa3fef66c00e9f544d (diff) | |
Get the lib name for MagickCore from pkg-config.
With recent ImageMagick releases the Quantum depth is postfixed to the
lib name.
| -rw-r--r-- | GNUmakefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index d95bbf6..601147b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -39,6 +39,8 @@ ifeq ("$(ARCH)", "x86_64") LDFLAGS+=-m64 endif +MAGICKCORELIB=$(LINKERFLAG)$(lastword $(shell pkg-config --libs MagickCore)) + AR=ar RANLIB=ranlib @@ -85,7 +87,7 @@ $(LIBNAME_DMAGICK): $(OBJECTS_DMAGICK) echo "void main(){}" > $@ unittest: /tmp/stubmain.d $(SOURCES_DMAGICK) - $(DC) $(DCFLAGS) $(UNITTESTFLAG) $(LINKERFLAG)-lMagickCore $(LDFLAGS) $^ $(output) + $(DC) $(DCFLAGS) $(UNITTESTFLAG) $(MAGICKCORELIB) $(LDFLAGS) $^ $(output) ./$@ ####################################################################### @@ -109,7 +111,7 @@ DMagick.pc: echo Name: DMagick > $@ echo Description: DMagick - A D binding for ImageMagick. >> $@ echo Version: $(DMAGICK_VERSION) >> $@ - echo Libs: $(LINKERFLAG)-L$(prefix)/lib/ $(LINKERFLAG)-lDMagick $(LINKERFLAG)-lMagickCore >> $@ + echo Libs: $(LINKERFLAG)-L$(prefix)/lib/ $(LINKERFLAG)-lDMagick $(MAGICKCORELIB) >> $@ echo Cflags: -I$(prefix)/include/d/ $(VERSIONS) >> $@ ####################################################################### |
