From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Date: Sat, 22 Nov 2003 09:04:03 +0000 Subject: Re: [PATCH] static klibc udev does not link against crt0.o Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Wed, Nov 19, Greg KH wrote: > > I did 'make KLIBC=3Dtrue' in the current bk tree. >=20 > try 'make -f Makefile.klibc' in the current tree. For some reason I > couldn't figure out how to have Makefile work for both KLIBC=3Dtrue and > KLIBC=FAlse. But I didn't try too hard :) I dont understand that. please do rm -f Makefile.klibc; apply this patch and tell me what fails. works for me. --- Makefile +++ Makefile 2003/11/19 18:40:40 @@ -166,7 +166,7 @@ =20 =20 $(ROOT): $(GEN_HEADERS) $(OBJS) - $(CC) $(LDFLAGS) -o $(ROOT) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS) + $(CC) $(LDFLAGS) -o $(ROOT) $(CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS) $(STRIPCMD) $(ROOT) =20 clean: @@ -215,7 +215,7 @@ $(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8 $(INSTALL_DATA) udev.config $(DESTDIR)$(configdir) $(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir) - - rm $(DESTDIR)$(hotplugdir)/udev.hotplug + - rm -f $(DESTDIR)$(hotplugdir)/udev.hotplug - ln -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug =20 uninstall: %build make KLIBC=3D%{use_klibc} DEBUG=FAlse cp -av udev udev.static make KLIBC=3D%{use_klibc} DEBUG=FAlse clean make KLIBC=FAlse DEBUG=3Dtrue cp -av udev udev.debug cd libsysfs ar cru libsysfs.a *.o ../logging.o ranlib libsysfs.a cd .. make -C extras/scsi_id CC=3D"gcc $RPM_OPT_FLAGS -I`pwd`/libsysfs -L`pwd`/li= bsysfs" this is what I use. --=20 USB is for mice, FireWire is for men! sUse lINUX ag, n=C3=9CRNBERG ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ 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