From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/lsof
Date: Wed, 29 Nov 2006 04:59:56 -0800 (PST) [thread overview]
Message-ID: <20061129125956.DB9B74857F@busybox.net> (raw)
Author: aldot
Date: 2006-11-29 04:59:56 -0800 (Wed, 29 Nov 2006)
New Revision: 16718
Log:
- compile against the cross toolchain, not the host
Added:
trunk/buildroot/package/lsof/lsof-makefile.patch
trunk/buildroot/package/lsof/lsof-uclibc.patch
Modified:
trunk/buildroot/package/lsof/lsof.mk
Changeset:
Added: trunk/buildroot/package/lsof/lsof-makefile.patch
===================================================================
--- trunk/buildroot/package/lsof/lsof-makefile.patch 2006-11-29 12:17:26 UTC (rev 16717)
+++ trunk/buildroot/package/lsof/lsof-makefile.patch 2006-11-29 12:59:56 UTC (rev 16718)
@@ -0,0 +1,14 @@
+diff -ru lsof_4.77.orig/lsof_4.77_src/lib/Makefile.skel lsof_4.77/lsof_4.77_src/lib/Makefile.skel
+--- lsof_4.77.orig/lsof_4.77_src/lib/Makefile.skel 2001-02-13 03:12:22.000000000 +0100
++++ lsof_4.77/lsof_4.77_src/lib/Makefile.skel 2006-11-29 13:51:44.000000000 +0100
+@@ -21,8 +21,8 @@
+ all: ${LIB}
+
+ ${LIB}: ${OBJ}
+- ${AR}
+- ${RANLIB}
++ ${AR} cr ${LIB} ${OBJ}
++ ${RANLIB} ${LIB}
+
+ clean: FRC
+ rm -f ${LIB} ${OBJ} errs Makefile.bak a.out core
Added: trunk/buildroot/package/lsof/lsof-uclibc.patch
===================================================================
--- trunk/buildroot/package/lsof/lsof-uclibc.patch 2006-11-29 12:17:26 UTC (rev 16717)
+++ trunk/buildroot/package/lsof/lsof-uclibc.patch 2006-11-29 12:59:56 UTC (rev 16718)
@@ -0,0 +1,12 @@
+diff -ru lsof_4.77.orig/lsof_4.77_src/dialects/linux/dlsof.h lsof_4.77/lsof_4.77_src/dialects/linux/dlsof.h
+--- lsof_4.77.orig/lsof_4.77_src/dialects/linux/dlsof.h 2006-03-28 00:57:14.000000000 +0200
++++ lsof_4.77/lsof_4.77_src/dialects/linux/dlsof.h 2006-11-29 14:03:07.000000000 +0100
+@@ -49,7 +49,7 @@
+ #include <unistd.h>
+ #include <netinet/in.h>
+
+-# if defined(GLIBCV)
++# if defined(GLIBCV) || defined __UCLIBC__
+ #include <netinet/tcp.h>
+ # else /* !defined(GLIBCV) */
+ #include <linux/tcp.h>
Modified: trunk/buildroot/package/lsof/lsof.mk
===================================================================
--- trunk/buildroot/package/lsof/lsof.mk 2006-11-29 12:17:26 UTC (rev 16717)
+++ trunk/buildroot/package/lsof/lsof.mk 2006-11-29 12:59:56 UTC (rev 16718)
@@ -10,6 +10,14 @@
LSOF_BINARY:=lsof
LSOF_TARGET_BINARY:=bin/lsof
+BR2_LSOF_CFLAGS:=
+ifeq ($(BR2_LARGEFILE),)
+BR2_LSOF_CFLAGS+=-U_FILE_OFFSET_BITS
+endif
+ifeq ($(UCLIBC_HAS_IPV6),)
+BR2_LSOF_CFLAGS+=-UHASIPv6
+endif
+
$(DL_DIR)/$(LSOF_SOURCE):
$(WGET) -P $(DL_DIR) $(LSOF_SITE)/$(LSOF_SOURCE)
@@ -24,14 +32,15 @@
touch $(LSOF_DIR)/.unpacked
$(LSOF_DIR)/.configured: $(LSOF_DIR)/.unpacked
- (cd $(LSOF_DIR)/lsof_4.77_src; echo n | CC="$(CC)" CFLAGS="$(CFLAGS)" ./Configure linux)
+ (cd $(LSOF_DIR)/lsof_4.77_src; echo n | $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS) $(BR2_LSOF_CFLAGS)" ./Configure linux)
touch $(LSOF_DIR)/.configured
$(LSOF_DIR)/lsof_4.77_src/$(LSOF_BINARY): $(LSOF_DIR)/.configured
- $(MAKE) CC=$(TARGET_CC) -C $(LSOF_DIR)/lsof_4.77_src
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS) $(BR2_LSOF_CFLAGS)" -C $(LSOF_DIR)/lsof_4.77_src
$(TARGET_DIR)/$(LSOF_TARGET_BINARY): $(LSOF_DIR)/lsof_4.77_src/$(LSOF_BINARY)
- cp -a $(LSOF_DIR)/lsof_4.77_src/$(LSOF_BINARY) $(TARGET_DIR)/$(LSOF_TARGET_BINARY)
+ cp $(LSOF_DIR)/lsof_4.77_src/$(LSOF_BINARY) $@
+ $(STRIP) $@
lsof: uclibc $(TARGET_DIR)/$(LSOF_TARGET_BINARY)
next reply other threads:[~2006-11-29 12:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 12:59 aldot at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-23 18:54 [Buildroot] svn commit: trunk/buildroot/package/lsof jacmet at uclibc.org
2008-06-16 12:29 jacmet at uclibc.org
2007-10-21 12:02 vanokuten at uclibc.org
2007-05-15 11:23 aldot at uclibc.org
2006-12-13 23:08 aldot at uclibc.org
2006-10-02 18:40 andersen at uclibc.org
2006-10-03 8:40 ` Bernhard Fischer
2006-10-03 18:41 ` Erik Andersen
2006-08-25 2:13 andersen at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061129125956.DB9B74857F@busybox.net \
--to=aldot@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox