summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload')
-rwxr-xr-xpayloads/libpayload/bin/lpgcc8
1 files changed, 8 insertions, 0 deletions
diff --git a/payloads/libpayload/bin/lpgcc b/payloads/libpayload/bin/lpgcc
index 43eb016449..4eca091fda 100755
--- a/payloads/libpayload/bin/lpgcc
+++ b/payloads/libpayload/bin/lpgcc
@@ -135,6 +135,14 @@ done
_CFLAGS="$_ARCHEXTRA -nostdinc -nostdlib -I$BASE/../build -I$_INCDIR -I$_ARCHINCDIR -D__LIBPAYLOAD__=1"
+if [ "$CONFIG_PDCURSES" = y ]; then
+ _CFLAGS="$_CFLAGS -I$BASE/../curses/PDCurses-3.4"
+fi
+
+if [ "$CONFIG_TINYCURSES" = y ]; then
+ _CFLAGS="$_CFLAGS -I$BASE/../curses"
+fi
+
# Check for the -fno-stack-protector silliness
trygccoption -fno-stack-protector