glibc: two-stage gcc simplifications
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 14 Sep 2014 09:50:02 +0000 (11:50 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 14 Sep 2014 21:21:29 +0000 (23:21 +0200)
After switching to a two stage gcc solution, there is no longer a need
to do weird things in the glibc build. We can greatly simplify
GLIBC_CONFIGURE_CMDS to only do the configuration, and let the
existing GLIBC_BUILD_CMDS do the build.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/glibc/glibc.mk

index 0f634451dd6a8e1653b6daff82d64e3e876721de..09b57fac5ea2507d88546c2d43117d98161efe38 100644 (file)
@@ -92,18 +92,7 @@ define GLIBC_CONFIGURE_CMDS
                --without-gd \
                --enable-obsolete-rpc \
                --with-headers=$(STAGING_DIR)/usr/include)
-       # Install headers and start files
-       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build \
-               install_root=$(STAGING_DIR) \
-               install-bootstrap-headers=yes \
-               install-headers
-       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build csu/subdir_lib
-       cp $(@D)/build/csu/crt1.o $(STAGING_DIR)/usr/lib/
-       cp $(@D)/build/csu/crti.o $(STAGING_DIR)/usr/lib/
-       cp $(@D)/build/csu/crtn.o $(STAGING_DIR)/usr/lib/
        $(GLIBC_ADD_MISSING_STUB_H)
-       $(TARGET_CROSS)gcc -nostdlib \
-               -nostartfiles -shared -x c /dev/null -o $(STAGING_DIR)/usr/lib/libc.so
 endef