blob: 0e7bd2efff748439550bad4952bd787107ad67e0 [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}"
Andrew Geissler8f840682023-07-21 09:09:43 -050030CXXFLAGS:append:class-target = " ${CFLAGS_SECTION_REMOVAL}"
Patrick Williams213cb262021-08-07 19:21:33 -050031LDFLAGS:append:class-target = " ${LDFLAGS_SECTION_REMOVAL}"
Andrew Geissler09209ee2020-12-13 08:44:15 -060032
33# set default for nativesdk
Patrick Williams213cb262021-08-07 19:21:33 -050034CFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}"
Andrew Geissler8f840682023-07-21 09:09:43 -050035CXXFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}"
Patrick Williams213cb262021-08-07 19:21:33 -050036LDFLAGS:append:class-nativesdk = " ${LDFLAGS_SECTION_REMOVAL}"