Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 1 | CFLAGS_SECTION_REMOVAL = "-ffunction-sections -fdata-sections" |
| 2 | LDFLAGS_SECTION_REMOVAL = "-Wl,--gc-sections" |
| 3 | |
| 4 | # packages with build problems using sections |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 5 | CFLAGS_SECTION_REMOVAL:pn-glibc = "" |
| 6 | LDFLAGS_SECTION_REMOVAL:pn-glibc = "" |
| 7 | CFLAGS_SECTION_REMOVAL:pn-cairo = "" |
| 8 | LDFLAGS_SECTION_REMOVAL:pn-cairo = "" |
| 9 | CFLAGS_SECTION_REMOVAL:pn-perl = "" |
| 10 | LDFLAGS_SECTION_REMOVAL:pn-perl = "" |
| 11 | CFLAGS_SECTION_REMOVAL:pn-grub-efi = "" |
| 12 | LDFLAGS_SECTION_REMOVAL:pn-grub-efi = "" |
| 13 | CFLAGS_SECTION_REMOVAL:pn-grub = "" |
| 14 | LDFLAGS_SECTION_REMOVAL:pn-grub = "" |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 15 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 16 | # SDK packages with build problems using sections |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | CFLAGS_SECTION_REMOVAL:pn-nativesdk-glibc = "" |
| 18 | LDFLAGS_SECTION_REMOVAL:pn-nativesdk-glibc = "" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 19 | CFLAGS_SECTION_REMOVAL:pn-nativesdk-cairo = "" |
| 20 | LDFLAGS_SECTION_REMOVAL:pn-nativesdk-cairo = "" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | CFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-runtime = "" |
| 22 | LDFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-runtime = "" |
| 23 | CFLAGS_SECTION_REMOVAL:pn-nativesdk-perl = "" |
| 24 | LDFLAGS_SECTION_REMOVAL:pn-nativesdk-perl = "" |
| 25 | CFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-winpthreads = "" |
| 26 | LDFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-winpthreads = "" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 27 | |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 28 | # set default for target |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 29 | CFLAGS:append:class-target = " ${CFLAGS_SECTION_REMOVAL}" |
| 30 | LDFLAGS:append:class-target = " ${LDFLAGS_SECTION_REMOVAL}" |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 31 | |
| 32 | # set default for nativesdk |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 33 | CFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}" |
| 34 | LDFLAGS:append:class-nativesdk = " ${LDFLAGS_SECTION_REMOVAL}" |