summaryrefslogtreecommitdiff
blob: dd231dbf5776997daad5c1c10b1131143a2f6111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- PerlMagick/Makefile.PL.in.orig	2010-01-10 20:05:53.000000000 +0000
+++ PerlMagick/Makefile.PL.in	2010-01-10 23:27:53.000000000 +0000
@@ -58,16 +58,16 @@
    'LD'          => $Config{'ld'} == $Config{'cc'} ? '@CC@' : $Config{'ld'},
 
    # Linker flags for building an executable
-   'LDFLAGS'    =>  "-L@MAGICKLIBDIR@ $Config{'ldflags'}",
+   'LDFLAGS'    =>  "$Config{'ldflags'} @LDFLAGS@",
 
    # Linker flags for building a dynamically loadable module
-   'LDDLFLAGS'  => "-L@MAGICKLIBDIR@ $Config{'lddlflags'}",
+   'LDDLFLAGS'  => "$Config{'ldflags'} @LDFLAGS@ -L@MAGICKLIBDIR@ $Config{'lddlflags'}",
 
    # Install PerlMagick binary into GraphicsMagick bin directory
    'INSTALLBIN'	=> '@BIN_DIR@',
 
    # Library specification
-   'LIBS'	=> ['-L@MAGICKLIBDIR@ -lGraphicsMagick @LDFLAGS@ @MAGICK_DEP_LIBS@'],
+   'LIBS'	=> ['@LDFLAGS@ -L@MAGICKLIBDIR@ -lGraphicsMagick @MAGICK_DEP_LIBS@'],
 
    # Perl binary name (if a Perl binary is built)
    'MAP_TARGET'	=> 'PerlMagick',