@@ -31,6 +31,9 @@ VERSION=2.0.33r3
31
31
# Command used to run Lua code
32
32
LUABIN =lua5.1
33
33
34
+ # Path to the utility 'gdlib-config'. This may be changed to compile the
35
+ # module with development versions of libgd.
36
+ GDLIBCONFIG =gdlib-config
34
37
35
38
# Optimization for the brave of heart ;)
36
39
OMITFP =-fomit-frame-pointer
@@ -47,11 +50,11 @@ LUAPKG=lua5.1
47
50
OUTFILE =gd.so
48
51
49
52
CFLAGS =-O3 -Wall -fPIC $(OMITFP )
50
- CFLAGS+ =` gdlib-config --cflags` ` pkg-config $( LUAPKG) --cflags `
53
+ CFLAGS+ =` $( GDLIBCONFIG ) --cflags` ` pkg-config $( LUAPKG) --cflags `
51
54
CFLAGS+=-DVERSION =\"$(VERSION ) \"
52
55
53
- GDFEATURES =` gdlib-config --features | sed -e " s/GD_/-DGD_/g" `
54
- LFLAGS =-shared ` gdlib-config --ldflags` ` gdlib-config --libs` -lgd
56
+ GDFEATURES =` $( GDLIBCONFIG ) --features | sed -e " s/GD_/-DGD_/g" `
57
+ LFLAGS =-shared ` $( GDLIBCONFIG ) --ldflags` ` $( GDLIBCONFIG ) --libs` -lgd
55
58
56
59
INSTALL_PATH := ` $( LUABIN) -e' \
57
60
for dir in package.cpath:gmatch("(/[^?;]+)?") do \
@@ -68,10 +71,10 @@ INSTALL_PATH := `$(LUABIN) -e' \
68
71
69
72
# OUTFILE=gd.so
70
73
# CFLAGS=-O3 -Wall -fPIC $(OMITFP)
71
- # CFLAGS+=`gdlib-config --cflags` -I/usr/include/lua5.1
74
+ # CFLAGS+=`$(GDLIBCONFIG) --cflags` -I/usr/include/lua5.1
72
75
# CFLAGS+=-DVERSION=\"$(VERSION)\"
73
- # GDFEATURES=`gdlib-config --features |sed -e "s/GD_/-DGD_/g"`
74
- # LFLAGS=-shared `gdlib-config --ldflags` `gdlib-config --libs` -lgd
76
+ # GDFEATURES=`$(GDLIBCONFIG) --features |sed -e "s/GD_/-DGD_/g"`
77
+ # LFLAGS=-shared `$(GDLIBCONFIG) --ldflags` `$(GDLIBCONFIG) --libs` -lgd
75
78
# INSTALL_PATH=/usr/lib/lua/
76
79
77
80
0 commit comments