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 = "" |
| 19 | CFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-runtime = "" |
| 20 | LDFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-runtime = "" |
| 21 | CFLAGS_SECTION_REMOVAL:pn-nativesdk-perl = "" |
| 22 | LDFLAGS_SECTION_REMOVAL:pn-nativesdk-perl = "" |
| 23 | CFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-winpthreads = "" |
| 24 | LDFLAGS_SECTION_REMOVAL:pn-nativesdk-mingw-w64-winpthreads = "" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 25 | |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 26 | # set default for target |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | CFLAGS:append:class-target = " ${CFLAGS_SECTION_REMOVAL}" |
| 28 | LDFLAGS:append:class-target = " ${LDFLAGS_SECTION_REMOVAL}" |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 29 | |
| 30 | # set default for nativesdk |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | CFLAGS:append:class-nativesdk = " ${CFLAGS_SECTION_REMOVAL}" |
| 32 | LDFLAGS:append:class-nativesdk = " ${LDFLAGS_SECTION_REMOVAL}" |