From patchwork Sun Sep 29 21:01:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Rommel X-Patchwork-Id: 278887 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 8F7DF2C00C8 for ; Mon, 30 Sep 2013 07:01:42 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0DE59930D4; Sun, 29 Sep 2013 21:01:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vN31DXuQOO8q; Sun, 29 Sep 2013 21:01:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BF0FE8B2A0; Sun, 29 Sep 2013 21:01:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2E56E1C26EF for ; Sun, 29 Sep 2013 21:01:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2A9C68BE31 for ; Sun, 29 Sep 2013 21:01:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mv+nwb5rolPP for ; Sun, 29 Sep 2013 21:01:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.tschaeche.com (smtp.tschaeche.com [188.40.196.194]) by whitealder.osuosl.org (Postfix) with ESMTP id 700418BB47 for ; Sun, 29 Sep 2013 21:01:38 +0000 (UTC) Received: from pelican.layer-7.net (ppp-93-104-141-129.dynamic.mnet-online.de [93.104.141.129]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by smtp.tschaeche.com (Postfix) with ESMTPSA id 965A52029A; Sun, 29 Sep 2013 23:01:37 +0200 (CEST) From: Michael Rommel To: buildroot@busybox.net Date: Sun, 29 Sep 2013 23:01:28 +0200 Message-Id: <1380488488-9510-1-git-send-email-rommel@layer-7.net> X-Mailer: git-send-email 1.7.10.4 Organization: Layer-7 Technologies Subject: [Buildroot] [buildroot] [PATCH] aiccu: patched Makefile to enable static linking X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Michael Rommel --- 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 diff --git a/package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch b/package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch new file mode 100644 index 0000000..07c9eb3 --- /dev/null +++ b/package/aiccu/aiccu-0002-makefile-reorder-linked-libraries.patch @@ -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 $@