[PATCH] static klibc udev does not link against crt0.o
On Wed, Nov 19, Greg KH wrote: > > I did 'make KLIBC=true' in the current bk tree. > > 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=true 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.
This commit is contained in:
parent
a367f04ee0
commit
ed83913730
4
Makefile
4
Makefile
|
@ -166,7 +166,7 @@ udev_version.h:
|
||||||
|
|
||||||
|
|
||||||
$(ROOT): $(GEN_HEADERS) $(OBJS)
|
$(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)
|
$(STRIPCMD) $(ROOT)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -215,7 +215,7 @@ install: all
|
||||||
$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
|
$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
|
||||||
$(INSTALL_DATA) udev.config $(DESTDIR)$(configdir)
|
$(INSTALL_DATA) udev.config $(DESTDIR)$(configdir)
|
||||||
$(INSTALL_DATA) udev.permissions $(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
|
- ln -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
|
Loading…
Reference in a new issue