mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 06:36:34 +00:00
Fixup g++ to prevent gcc_target having a missing
dl_iterate_phdr symbol. Add a target 'cc' link to gcc. -Erik
This commit is contained in:
parent
dc77b4789d
commit
b2a0d22166
@ -139,6 +139,7 @@ $(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled
|
|||||||
-C $(GCC_BUILD_DIR3) install;
|
-C $(GCC_BUILD_DIR3) install;
|
||||||
rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc \
|
rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc \
|
||||||
$(TARGET_DIR)/usr/share/locale
|
$(TARGET_DIR)/usr/share/locale
|
||||||
|
(cd $(TARGET_DIR)/usr/bin; ln -s gcc cc)
|
||||||
-$(STRIP) $(TARGET_DIR)/bin/*
|
-$(STRIP) $(TARGET_DIR)/bin/*
|
||||||
-$(STRIP) $(TARGET_DIR)/usr/bin/*
|
-$(STRIP) $(TARGET_DIR)/usr/bin/*
|
||||||
|
|
||||||
|
@ -326,6 +326,9 @@ $(GCC_DIR)/.ldso_hacks: $(GCC_DIR)/.patched
|
|||||||
$(GCC_DIR)/libstdc++-v3/config/os/gnu-linux/bits/
|
$(GCC_DIR)/libstdc++-v3/config/os/gnu-linux/bits/
|
||||||
cp $(GCC_DIR)/libstdc++-v3/config/os/generic/bits/ctype_noninline.h \
|
cp $(GCC_DIR)/libstdc++-v3/config/os/generic/bits/ctype_noninline.h \
|
||||||
$(GCC_DIR)/libstdc++-v3/config/os/gnu-linux/bits/
|
$(GCC_DIR)/libstdc++-v3/config/os/gnu-linux/bits/
|
||||||
|
# Prevent gcc from using the unwind-dw2-fde-glibc code
|
||||||
|
perl -i -p -e "s,^#ifndef inhibit_libc,#define inhibit_libc\n#ifndef inhibit_libc,g;" \
|
||||||
|
$(GCC_DIR)/gcc/unwind-dw2-fde-glibc.c;
|
||||||
touch $(GCC_DIR)/.ldso_hacks
|
touch $(GCC_DIR)/.ldso_hacks
|
||||||
|
|
||||||
$(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.ldso_hacks
|
$(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.ldso_hacks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user