From 4d0cc7db43bfaf4be097bab83227ef9e337609e6 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 18 Aug 2014 17:56:33 -0500 Subject: [PATCH] wmacpi: Respect CFLAGS and LDFLAGS. Allow additional flags to be appended to CFLAGS and/or LDFLAGS. Based on the patch from Debian: http://sources.debian.net/src/wmacpi/2.2~rc5%2Bds-1/debian/patches/fix_compiler_flags.patch/ --- wmacpi/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wmacpi/Makefile b/wmacpi/Makefile index acfde2d..cd840a6 100644 --- a/wmacpi/Makefile +++ b/wmacpi/Makefile @@ -13,8 +13,8 @@ BUILD_CLI = 1 #OPT = -pg -g CC := gcc -CFLAGS := $(OPT) -Wall -W -g -ansi -I/usr/X11R6/include -LDFLAGS := $(OPT) -lX11 -ldockapp +CFLAGS += $(OPT) -Wall -W -g -ansi -I/usr/X11R6/include +LDFLAGS += $(OPT) -lX11 -ldockapp WMSRC := wmacpi.c libacpi.c HEADERS := libacpi.h wmacpi.h