Commit 5581d425 authored by Didier Raboud's avatar Didier Raboud

Add patch to enforce LDFLAGS usage

This makes command2esp get the 'read-only relocation' link flag
parent cf1736ba
Description: Enforce LDFLAGS usage when compiling the filters
Author: Didier Raboud <>
Last-Update: 2014-01-02
--- a/Makefile
+++ b/Makefile
@@ -261,19 +261,19 @@
# $(CC) $(CFLAGS) -o $@ c2esp.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) $(LIBJBG85)
c2esp: c2esp.o c2espcommon.o
- $(CC) $(CFLAGS) -o $@ c2esp.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) $(LIBJBIG85)
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ c2esp.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) $(LIBJBIG85)
c2espC: c2espC.o c2espcommon.o
- $(CC) $(CFLAGS) -o $@ c2espC.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) -lz
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ c2espC.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) -lz
command2esp: command2esp.o c2espcommon.o
- $(CC) $(CFLAGS) -o $@ command2esp.o c2espcommon.o $(LIBCUPSDRIVER)
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ command2esp.o c2espcommon.o $(LIBCUPSDRIVER)
#myopldecode: myopldecode.o
# $(CC) $(CFLAGS) -o $@ $@.o $(LIBJBG) -lz
myopldecode: myopldecode.o
- $(CC) $(CFLAGS) -o $@ $@.o $(LIBJBIG) -lz
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $@.o $(LIBJBIG) -lz
# Installation rules
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment