pcsc-tools/optflags.diff
2013-10-14 19:26:08 +00:00

14 lines
456 B
Diff

Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -8,7 +8,7 @@ PCSC_LDLIBS ?= $(shell pkg-config libpcs
DESTDIR ?= /usr/local
VERSION := $(shell pwd | sed s/.*tools-//)
-CFLAGS := $(CFLAGS) -DVERSION=\"$(VERSION)\" $(PCSC_CFLAGS)
+CFLAGS := -Wall -O2 $(OPTFLAGS) -DVERSION=\"$(VERSION)\" $(PCSC_CFLAGS)
LDLIBS := $(PCSC_LDLIBS)
# On xBSD systems use
#LDLIBS = -lc_r $(PCSC_LDLIBS)