blob: dd98943acb39b4c00e6b2e1ccebabe26a59d436c [file] [log] [blame]
Andrew Geissler09209ee2020-12-13 08:44:15 -06001CFLAGS_SECTION_REMOVAL = "-ffunction-sections -fdata-sections"
2LDFLAGS_SECTION_REMOVAL = "-Wl,--gc-sections"
3
4# packages with build problems using sections
5CFLAGS_SECTION_REMOVAL_pn-glibc = ""
6LDFLAGS_SECTION_REMOVAL_pn-glibc = ""
7CFLAGS_SECTION_REMOVAL_pn-cairo = ""
8LDFLAGS_SECTION_REMOVAL_pn-cairo = ""
9CFLAGS_SECTION_REMOVAL_pn-perl = ""
10LDFLAGS_SECTION_REMOVAL_pn-perl = ""
11CFLAGS_SECTION_REMOVAL_pn-grub-efi = ""
12LDFLAGS_SECTION_REMOVAL_pn-grub-efi = ""
13CFLAGS_SECTION_REMOVAL_pn-grub = ""
14LDFLAGS_SECTION_REMOVAL_pn-grub = ""
15
Andrew Geissler09209ee2020-12-13 08:44:15 -060016# set default for target
17CFLAGS_append_class-target = " ${CFLAGS_SECTION_REMOVAL}"
18LDFLAGS_append_class-target = " ${LDFLAGS_SECTION_REMOVAL}"
19
20# set default for nativesdk
21CFLAGS_append_class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}"
22LDFLAGS_append_class-nativesdk = " ${LDFLAGS_SECTION_REMOVAL}"