aboutsummaryrefslogtreecommitdiffstats
path: root/testing/squeezelite/0001-respect-LDFLAGS.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-03-31 10:25:27 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-03-31 10:25:27 +0000
commit0a8c5c2acd334e499247c6f3b629152797e16ccd (patch)
treeed3bde74c94e1775019622a50d803edaea50ec8a /testing/squeezelite/0001-respect-LDFLAGS.patch
parent1cd8f7c0b17413d5be6bb769f5287d10e327741a (diff)
downloadaports-0a8c5c2acd334e499247c6f3b629152797e16ccd.tar.bz2
aports-0a8c5c2acd334e499247c6f3b629152797e16ccd.tar.xz
testing/squeezelite: new aport
Diffstat (limited to 'testing/squeezelite/0001-respect-LDFLAGS.patch')
-rw-r--r--testing/squeezelite/0001-respect-LDFLAGS.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/testing/squeezelite/0001-respect-LDFLAGS.patch b/testing/squeezelite/0001-respect-LDFLAGS.patch
new file mode 100644
index 0000000000..8ce873d39c
--- /dev/null
+++ b/testing/squeezelite/0001-respect-LDFLAGS.patch
@@ -0,0 +1,61 @@
+From 1c53ed7db5b49ebf347efe65dbf9b740f9d54557 Mon Sep 17 00:00:00 2001
+From: Carlo Landmeter <clandmeter@gmail.com>
+Date: Tue, 31 Mar 2015 09:52:53 +0000
+Subject: [PATCH] respect LDFLAGS
+
+---
+ Makefile | 17 +++++++++--------
+ 1 file changed, 9 insertions(+), 8 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index dca2abd..119c751 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,7 @@
+ # Cross compile support - create a Makefile which defines these three variables and then includes this Makefile...
+-CFLAGS ?= -Wall -fPIC -O2 $(OPTS)
+-LDFLAGS ?= -lasound -lpthread -lm -lrt
++CFLAGS ?= -Wall -O2
++CFLAGS += -fPIC $(OPTS)
++LIBS ?= -lasound -lpthread -lm -lrt
+ EXECUTABLE ?= squeezelite
+
+ # passing one or more of these in $(OPTS) enables optional feature inclusion
+@@ -52,20 +53,20 @@ endif
+
+ # add optional link options
+ ifneq (,$(findstring $(OPT_LINKALL), $(CFLAGS)))
+- LDFLAGS += $(LINKALL)
++ LIBS += $(LINKALL)
+ ifneq (,$(findstring $(OPT_FF), $(CFLAGS)))
+- LDFLAGS += $(LINKALL_FF)
++ LIBS += $(LINKALL_FF)
+ endif
+ ifneq (,$(findstring $(OPT_RESAMPLE), $(CFLAGS)))
+- LDFLAGS += $(LINKALL_RESAMPLE)
++ LIBS += $(LINKALL_RESAMPLE)
+ endif
+ ifneq (,$(findstring $(OPT_IR), $(CFLAGS)))
+- LDFLAGS += $(LINKALL_IR)
++ LIBS += $(LINKALL_IR)
+ endif
+ else
+ # if not LINKALL and linux add LINK_LINUX
+ ifeq ($(UNAME), Linux)
+- LDFLAGS += $(LINK_LINUX)
++ LIBS += $(LINK_LINUX)
+ endif
+ endif
+
+@@ -74,7 +75,7 @@ OBJECTS = $(SOURCES:.c=.o)
+ all: $(EXECUTABLE)
+
+ $(EXECUTABLE): $(OBJECTS)
+- $(CC) $(OBJECTS) $(LDFLAGS) -o $@
++ $(CC) $(OBJECTS) $(LDFLAGS) $(LIBS) -o $@
+
+ $(OBJECTS): $(DEPS)
+
+--
+2.3.4
+