diff mbox

Define _REENTRANT with -pthread on aarch64-linux

Message ID mvmmwpuqwsh.fsf@hawking.suse.de
State New
Headers show

Commit Message

Andreas Schwab July 10, 2013, 3:06 p.m. UTC
This is expected by some software (SWI Prolog checks for it).

Andreas.

	* config/aarch64/aarch64-linux.h (CPP_SPEC): Define.

Comments

Marcus Shawcroft July 10, 2013, 4:11 p.m. UTC | #1
On 10 July 2013 16:06, Andreas Schwab <schwab@suse.de> wrote:
> This is expected by some software (SWI Prolog checks for it).
>
> Andreas.

OK, Thank you.

... this time copying in gcc-patches from an account that won't get bounced...

/Marcus
diff mbox

Patch

diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h
index e914ed2..83efad4 100644
--- a/gcc/config/aarch64/aarch64-linux.h
+++ b/gcc/config/aarch64/aarch64-linux.h
@@ -23,6 +23,8 @@ 
 
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64.so.1"
 
+#define CPP_SPEC "%{pthread:-D_REENTRANT}"
+
 #define LINUX_TARGET_LINK_SPEC  "%{h*}		\
    %{static:-Bstatic}				\
    %{shared:-shared}				\