blob: a1f8651ae9c34d694c71d4ff6dc10f61c1385802 [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
Patrick Williams213cb262021-08-07 19:21:33 -05005CFLAGS_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 = ""
Andrew Geissler09209ee2020-12-13 08:44:15 -060015
Andrew Geisslerd1e89492021-02-12 15:35:20 -060016# SDK packages with build problems using sections
Patrick Williams213cb262021-08-07 19:21:33 -050017CFLAGS_SECTION_REMOVAL:pn-nativesdk-glibc = ""
18LDFLAGS_SECTION_REMOVAL:pn-nativesdk-glibc = ""
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000019CFLAGS_SECTION_REMOVAL:pn-nativesdk-cairo = ""
20LDFLAGS_SECTION_REMOVAL:pn-nativesdk-cairo = ""
Patrick Williams213cb262021-08-07 19:21:33 -050021CFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-runtime = ""
22LDFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-runtime = ""
23CFLAGS_SECTION_REMOVAL:pn-nativesdk-perl = ""
24LDFLAGS_SECTION_REMOVAL:pn-nativesdk-perl = ""
25CFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-winpthreads = ""
26LDFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-winpthreads = ""
Andrew Geisslerd1e89492021-02-12 15:35:20 -060027
Andrew Geissler09209ee2020-12-13 08:44:15 -060028# set default for target
Patrick Williams213cb262021-08-07 19:21:33 -050029CFLAGS:append:class-target = " ${CFLAGS_SECTION_REMOVAL}"
30LDFLAGS:append:class-target = " ${LDFLAGS_SECTION_REMOVAL}"
Andrew Geissler09209ee2020-12-13 08:44:15 -060031
32# set default for nativesdk
Patrick Williams213cb262021-08-07 19:21:33 -050033CFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}"
34LDFLAGS:append:class-nativesdk = " ${LDFLAGS_SECTION_REMOVAL}"