From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/udev
Date: Mon, 8 Dec 2008 05:41:56 -0800 (PST) [thread overview]
Message-ID: <20081208134156.9F5533C6FB@busybox.net> (raw)
Author: jacmet
Date: 2008-12-08 05:41:56 -0800 (Mon, 08 Dec 2008)
New Revision: 24319
Log:
package/udev: fix CFLAGS for udev extras
If the udev extras are built without large file support in uClibc,
I get the following error:
build_powerpc/staging_dir/usr/bin/powerpc-linux-uclibc-gcc -c -g -Wall
-pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wstrict-prototypes
-Wsign-compare -Wshadow -Wchar-subscripts -Wmissing-declarations
-Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare
-Wmissing-prototypes -Os ext.c -o ext.o
In file included from build_powerpc/staging_dir/usr/include/stdio.h:28,
from ext.c:19:
build_powerpc/staging_dir/usr/include/features.h:382:4: error:
#error It appears you have defined _FILE_OFFSET_BITS=64. Unfortunately,
uClibc was built without large file support enabled.
Although the base udev package builds correctly, the extras pacakges
don't adjust their CFLAGS depending on BR2_LARGEFILE.
This change adds the required CFLAGS modifications to make the
extras build.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Modified:
trunk/buildroot/package/udev/udev.mk
Changeset:
Modified: trunk/buildroot/package/udev/udev.mk
===================================================================
--- trunk/buildroot/package/udev/udev.mk 2008-12-08 13:41:53 UTC (rev 24318)
+++ trunk/buildroot/package/udev/udev.mk 2008-12-08 13:41:56 UTC (rev 24319)
@@ -81,6 +81,7 @@
$(STAGING_DIR)/usr/lib/libvolume_id.so.$(UDEV_VOLUME_ID_VERSION):
$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
+ CFLAGS="$(BR2_UDEV_CFLAGS)" \
USE_LOG=false USE_SELINUX=false \
udevdir=$(UDEV_ROOT) EXTRAS="extras/volume_id" -C $(UDEV_DIR)
$(INSTALL) -m 0644 -D $(UDEV_DIR)/extras/volume_id/lib/libvolume_id.h $(STAGING_DIR)/usr/include/libvolume_id.h
@@ -125,6 +126,7 @@
$(TARGET_DIR)/lib/udev/scsi_id: $(STAGING_DIR)/usr/lib/libvolume_id.so.$(UDEV_VOLUME_ID_VERSION)
$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
+ CFLAGS="$(BR2_UDEV_CFLAGS)" \
USE_LOG=false USE_SELINUX=false \
udevdir=$(UDEV_ROOT) EXTRAS="extras/scsi_id" -C $(UDEV_DIR)
$(INSTALL) -m 0755 -D $(UDEV_DIR)/extras/scsi_id/scsi_id $(TARGET_DIR)/lib/udev/scsi_id
@@ -132,6 +134,7 @@
$(TARGET_DIR)/lib/udev/usb_id: $(STAGING_DIR)/usr/lib/libvolume_id.so.$(UDEV_VOLUME_ID_VERSION)
$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
+ CFLAGS="$(BR2_UDEV_CFLAGS)" \
USE_LOG=false USE_SELINUX=false \
udevdir=$(UDEV_ROOT) EXTRAS="extras/usb_id" -C $(UDEV_DIR)
$(INSTALL) -m 0755 -D $(UDEV_DIR)/extras/usb_id/usb_id $(TARGET_DIR)/lib/udev/usb_id
next reply other threads:[~2008-12-08 13:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 13:41 jacmet at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-02-13 19:58 [Buildroot] svn commit: trunk/buildroot/package/udev jacmet at uclibc.org
2008-12-08 13:48 jacmet at uclibc.org
2008-12-08 13:41 jacmet at uclibc.org
2008-12-08 13:41 jacmet at uclibc.org
2008-04-06 10:35 nkukard at uclibc.org
2007-08-15 22:31 ulf at uclibc.org
2007-08-15 15:47 ulf at uclibc.org
2007-08-14 6:16 ulf at uclibc.org
2007-08-11 16:52 ulf at uclibc.org
2007-08-11 16:50 ulf at uclibc.org
2007-05-07 4:02 sjhill at uclibc.org
2007-01-19 16:23 aldot at uclibc.org
2007-01-14 0:59 sjhill at uclibc.org
2006-12-10 13:53 aldot at uclibc.org
2006-12-06 8:29 aldot at uclibc.org
2006-12-01 17:49 aldot at uclibc.org
2006-11-29 18:59 aldot at uclibc.org
2006-11-29 21:38 ` Petr Stetiar
2006-12-01 17:50 ` Bernhard Fischer
2006-12-01 20:47 ` ynezz
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=20081208134156.9F5533C6FB@busybox.net \
--to=jacmet@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