devel-prefix-lib.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. diff -Nur uClibc-0.9.30.1.orig/Makefile.in uClibc-0.9.30.1/Makefile.in
  2. --- uClibc-0.9.30.1.orig/Makefile.in 2008-11-17 23:38:34.000000000 +0100
  3. +++ uClibc-0.9.30.1/Makefile.in 2009-12-07 20:34:07.000000000 +0100
  4. @@ -190,7 +190,7 @@
  5. install: install_runtime install_dev
  6. -RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB=$(shell $(top_srcdir)extra/scripts/relative_path.sh $(DEVEL_PREFIX)lib $(RUNTIME_PREFIX)lib)
  7. +RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB=$(shell $(top_srcdir)extra/scripts/relative_path.sh $(DEVEL_PREFIX_LIB)lib $(RUNTIME_PREFIX)lib)
  8. $(top_builddir)extra/scripts/unifdef: $(top_srcdir)extra/scripts/unifdef.c
  9. $(hcompile.u)
  10. @@ -370,41 +370,41 @@
  11. # Installs development library links.
  12. install_dev: install_headers all
  13. - $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
  14. - -$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
  15. + $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX_LIB)lib
  16. + -$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX_LIB)lib/
  17. ifeq ($(HAVE_SHARED),y)
  18. for i in `find lib/ -type l -name 'lib[a-zA-Z]*.so' | \
  19. $(SED) -e 's/lib\///'` ; do \
  20. $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)$$i.$(MAJOR_VERSION) \
  21. - $(PREFIX)$(DEVEL_PREFIX)lib/$$i; \
  22. + $(PREFIX)$(DEVEL_PREFIX_LIB)lib/$$i; \
  23. done
  24. if [ -f $(top_builddir)lib/libc.so -a -f $(PREFIX)$(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME) ] ; then \
  25. - $(RM) $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \
  26. - $(SED) -e 's:$(NONSHARED_LIBNAME):$(DEVEL_PREFIX)lib/$(NONSHARED_LIBNAME):' \
  27. + $(RM) $(PREFIX)$(DEVEL_PREFIX_LIB)lib/libc.so; \
  28. + $(SED) -e 's:$(NONSHARED_LIBNAME):$(DEVEL_PREFIX_LIB)lib/$(NONSHARED_LIBNAME):' \
  29. -e 's:$(SHARED_MAJORNAME):$(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME):' \
  30. -e 's:$(UCLIBC_LDSO):$(RUNTIME_PREFIX)lib/$(UCLIBC_LDSO):' \
  31. - $(top_builddir)lib/libc.so > $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \
  32. + $(top_builddir)lib/libc.so > $(PREFIX)$(DEVEL_PREFIX_LIB)lib/libc.so; \
  33. fi
  34. ifeq ($(UCLIBC_HAS_THREADS),y)
  35. ifneq ($(LINUXTHREADS_OLD),y)
  36. if [ -f $(top_builddir)lib/libpthread.so -a -f $(PREFIX)$(RUNTIME_PREFIX)lib/libpthread.so.$(MAJOR_VERSION) ] ; then \
  37. - $(RM) $(PREFIX)$(DEVEL_PREFIX)lib/libpthread.so; \
  38. - cp $(top_srcdir)extra/scripts/format.lds $(PREFIX)$(DEVEL_PREFIX)lib/libpthread.so; \
  39. - echo "GROUP ( $(RUNTIME_PREFIX)lib/libpthread.so.$(MAJOR_VERSION) $(DEVEL_PREFIX)lib/libpthread_nonshared.a )" \
  40. - >> $(PREFIX)$(DEVEL_PREFIX)lib/libpthread.so; \
  41. + $(RM) $(PREFIX)$(DEVEL_PREFIX_LIB)lib/libpthread.so; \
  42. + cp $(top_srcdir)extra/scripts/format.lds $(PREFIX)$(DEVEL_PREFIX_LIB)lib/libpthread.so; \
  43. + echo "GROUP ( $(RUNTIME_PREFIX)lib/libpthread.so.$(MAJOR_VERSION) $(DEVEL_PREFIX_LIB)lib/libpthread_nonshared.a )" \
  44. + >> $(PREFIX)$(DEVEL_PREFIX_LIB)lib/libpthread.so; \
  45. fi
  46. endif
  47. endif
  48. ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
  49. $(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)libthread_db.so.1 \
  50. - $(PREFIX)$(DEVEL_PREFIX)lib/libthread_db.so
  51. + $(PREFIX)$(DEVEL_PREFIX_LIB)lib/libthread_db.so
  52. endif
  53. ifeq ($(DOPIC),y)
  54. # # If we build shared libraries then the static libs are PIC...
  55. # # Make _pic.a symlinks to make mklibs.py and similar tools happy.
  56. if [ -d lib ] ; then \
  57. for i in `find lib/ -type f -name 'lib*.a' | $(SED) -e 's/lib\///'` ; do \
  58. - $(LN) -sf $$i $(PREFIX)$(DEVEL_PREFIX)lib/`echo $$i \
  59. + $(LN) -sf $$i $(PREFIX)$(DEVEL_PREFIX_LIB)lib/`echo $$i \
  60. | $(SED) -e 's/\.a$$/_pic.a/'`; \
  61. done ; \
  62. fi
  63. @@ -413,9 +413,9 @@
  64. ifeq ($(UCLIBC_FORMAT_SHARED_FLAT),y)
  65. for file in lib/lib*.gdb; do \
  66. if test -f $$file; then \
  67. - $(INSTALL) -m 755 $$file $(PREFIX)$(DEVEL_PREFIX)lib; \
  68. + $(INSTALL) -m 755 $$file $(PREFIX)$(DEVEL_PREFIX_LIB)lib; \
  69. $(INSTALL) -m 755 `echo $$file | $(SED) 's/\.gdb$$//'` \
  70. - $(PREFIX)$(DEVEL_PREFIX)lib; \
  71. + $(PREFIX)$(DEVEL_PREFIX_LIB)lib; \
  72. fi; \
  73. done
  74. endif