* patch udev: static linking and DESTDIR
@ 2005-05-20 11:34 Vassilis Virvilis
2005-05-22 14:07 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Vassilis Virvilis @ 2005-05-20 11:34 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 923 bytes --]
This patch does two things
1)
Note: klcc builds statically by default so I don't see the reason to
explicitly state it. However if somebody changes the default behavior of
klcc (like me) it will lost considerable time trying to find out why
hotplug (and udev) doesn't build statically (like me).
2)
I am building hotplug (and udev) for an initramfs image. I have
specified DESTDIR to be ~/src/embed/root-initramfs and the defines
as they are now are pointing to DESTDIR which is wrong since that
directory will be the root upon boot and udev cannot find the
~/src/embed/root-initramfs/sbin/udev staff.
Note the klibc works around this by introducing INSTALLROOT and
INSTALLDIR Makefile variables. Maybe something like this is a good idea?
Also note that the INSTALL_DIR variable in udev makefile is useless as
it is not referenced anywhere. Would you accept a patch to clean it up
as it is distracting...
.bill
[-- Attachment #2: patch-udev --]
[-- Type: text/plain, Size: 936 bytes --]
diff -ur orig/udev-057/Makefile udev-057/Makefile
--- orig/udev-057/Makefile 2005-04-15 00:39:34.000000000 +0300
+++ udev-057/Makefile 2005-05-19 18:43:43.000000000 +0300
@@ -178,7 +178,7 @@
KLCC = $(KLIBC_INSTALL)/bin/klcc
CC = $(KLCC)
LD = $(KLCC)
- LDFLAGS += -static
+ #LDFLAGS += -static
else
CFLAGS += -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
endif
@@ -250,8 +250,8 @@
@echo \#define UDEV_CONFIG_DIR \"$(configdir)\" >> $@
@echo \#define UDEV_CONFIG_FILE \"$(configdir)/udev.conf\" >> $@
@echo \#define UDEV_RULES_FILE \"$(configdir)/rules.d\" >> $@
- @echo \#define UDEV_BIN \"$(DESTDIR)$(sbindir)/udev\" >> $@
- @echo \#define UDEVD_BIN \"$(DESTDIR)$(sbindir)/udevd\" >> $@
+ @echo \#define UDEV_BIN \"$(sbindir)/udev\" >> $@
+ @echo \#define UDEVD_BIN \"$(sbindir)/udevd\" >> $@
# Rules on how to create the generated config files
$(LOCAL_CFG_DIR)/udev.conf:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: patch udev: static linking and DESTDIR
2005-05-20 11:34 patch udev: static linking and DESTDIR Vassilis Virvilis
@ 2005-05-22 14:07 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-05-22 14:07 UTC (permalink / raw)
To: linux-hotplug
On Fri, May 20, 2005 at 02:34:47PM +0300, Vassilis Virvilis wrote:
> This patch does two things
>
> 1)
> Note: klcc builds statically by default so I don't see the reason to
> explicitly state it. However if somebody changes the default behavior of
> klcc (like me) it will lost considerable time trying to find out why
> hotplug (and udev) doesn't build statically (like me).
The -static prevented a static build?
Anyway, removed!
> 2)
> I am building hotplug (and udev) for an initramfs image. I have
> specified DESTDIR to be ~/src/embed/root-initramfs and the defines
> as they are now are pointing to DESTDIR which is wrong since that
> directory will be the root upon boot and udev cannot find the
> ~/src/embed/root-initramfs/sbin/udev staff.
Yes, that seems wrong. Fixed!
Using DESTDIR only on the install target works. :)
> Note the klibc works around this by introducing INSTALLROOT and
> INSTALLDIR Makefile variables. Maybe something like this is a good idea?
Does "prefix" not work for that?
> Also note that the INSTALL_DIR variable in udev makefile is useless as
> it is not referenced anywhere. Would you accept a patch to clean it up
> as it is distracting...
Removed!
Thanks,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id\x16344&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-22 14:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-20 11:34 patch udev: static linking and DESTDIR Vassilis Virvilis
2005-05-22 14:07 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).