or1k: Define PI_STATIC_AND_HIDDEN

PI_STATIC_AND_HIDDEN means that references to static functions, data
and symbols with hidden visibility do not need any run-time relocations
after the final link, with the build flags used by glibc.

OpenRISC follows this so enabled PI_STATIC_AND_HIDDEN by adding
configure.ac and generating configure.

Suggested-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
Stafford Horne 2022-01-29 08:20:40 +09:00
parent 355bc7f736
commit 3f35e7d193
2 changed files with 9 additions and 0 deletions

5
sysdeps/or1k/configure vendored Normal file
View File

@ -0,0 +1,5 @@
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/or1k.
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h

View File

@ -0,0 +1,4 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/or1k.
AC_DEFINE(PI_STATIC_AND_HIDDEN)