Skip to contentSkip to conversation

aiccu: patched Makefile to enable static linking

PATCH Superseded Michael Rommel 2 participants 2 messages Sep 29, 2013 – Sep 30, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aiccu: patched Makefile to enable static linking

---
v1: initial patch to add required libraries for static linking to LDFLAGS
and reorder the CC commandline

 ...cu-0002-makefile-reorder-linked-libraries.patch |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch
package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch new file +20 -0
new file mode 100644
index 0000000..07c9eb3
@@ -0,0 +1,20 @@
+--- aiccu_20070115.orig/unix-console/Makefile	2007-01-15 12:04:27.000000000 +0100
++++ aiccu_20070115/unix-console/Makefile	2013-09-29 22:54:42.742963861 +0200
+@@ -42,7 +42,7 @@ CFLAGS	+= -D AICCU_CONSOLE
+ # Currently defaultly builds only on Linux, but other platforms might easily also support it
+ ifeq ($(shell uname | grep -c "Linux"),1)
+ CFLAGS	+= -D AICCU_GNUTLS
+-LDFLAGS += -lgnutls
++LDFLAGS += -lgnutls -lhogweed -lnettle -lgmp -lz
+ endif
+ 
+ # Linux
+@@ -144,7 +144,7 @@ endif
+ all: aiccu
+ 
+ aiccu:	$(OBJS) ${SRCS} ${INCS}
+-	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
++	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
+ ifeq ($(shell echo $(CFLAGS) | grep -c "DEBUG"),0)
+ ifeq ($(shell echo "$(RPM_OPT_FLAGS)" | wc -c),1)
+ 	strip $@
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 aiccu: patched Makefile to enable static linking

Hi Michael,

Quoted 5 lines · Michael Rommel

---
v1: initial patch to add required libraries for static linking to LDFLAGS
and reorder the CC commandline

When a commit fixes an autobuild problem, we typically specify that in the commit message, like:
"Fixes <autobuild-url>"

package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch

Quoted 10 lines
 ...cu-0002-makefile-reorder-linked-libraries.patch |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch
package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch new file +0 -0
new file mode 100644
index 0000000..07c9eb3

The patch itself should also contain a commit message and Signed-off-by line.

Quoted 22 lines
package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch new file +20 -1
@@ -0,0 +1,20 @@
+--- aiccu_20070115.orig/unix-console/Makefile  2007-01-15 12:04:27.000000000 +0100
++++ aiccu_20070115/unix-console/Makefile       2013-09-29 22:54:42.742963861 +0200
+@@ -42,7 +42,7 @@ CFLAGS       += -D AICCU_CONSOLE
+ # Currently defaultly builds only on Linux, but other platforms might easily also support it
+ ifeq ($(shell uname | grep -c "Linux"),1)
+ CFLAGS        += -D AICCU_GNUTLS
+-LDFLAGS += -lgnutls
++LDFLAGS += -lgnutls -lhogweed -lnettle -lgmp -lz
+ endif
+
+ # Linux
+@@ -144,7 +144,7 @@ endif
+ all: aiccu
+
+ aiccu:        $(OBJS) ${SRCS} ${INCS}
+-      $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
++      $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
+ ifeq ($(shell echo $(CFLAGS) | grep -c "DEBUG"),0)
+ ifeq ($(shell echo "$(RPM_OPT_FLAGS)" | wc -c),1)
+       strip $@
--
Quoted 1 line

1.7.10.4

Best regards,
Thomas