diff --git a/gcc/gcc/config/haiku.opt b/gcc/gcc/config/haiku.opt index efa1872890..5b22f3b446 100644 --- a/gcc/gcc/config/haiku.opt +++ b/gcc/gcc/config/haiku.opt @@ -26,4 +26,7 @@ pthread Driver +rdynamic +Driver + ; This comment is to ensure we retain the blank line above. diff --git a/legacy/gcc/gcc/config/i386/haiku.h b/legacy/gcc/gcc/config/i386/haiku.h index 5508fbb2ab..f1e0f33d02 100644 --- a/legacy/gcc/gcc/config/i386/haiku.h +++ b/legacy/gcc/gcc/config/i386/haiku.h @@ -163,7 +163,7 @@ Boston, MA 02111-1307, USA. */ -Asystem(haiku)" #undef CPP_SPEC -#define CPP_SPEC "%(cpp_cpu) %{!fno-pic:%{!fno-PIC:-D__PIC__ -D__pic__}} %{pthread:}" +#define CPP_SPEC "%(cpp_cpu) %{!fno-pic:%{!fno-PIC:-D__PIC__ -D__pic__}} %{pthread:} %{rdynamic}" /* Haiku uses lots of multichars, so don't warn about them unless the user explicitly asks for the warnings with -Wmultichar. Note that