OSDN Git Service

Android: inital porting of libefivar
[android-x86/external-efivar.git] / gcc.specs
1 *cpp:
2 + -D_GNU_SOURCE
3
4 *efivar_cpp_options:
5  -Werror -Wall -std=gnu11 -Wextra
6
7 *cpp_options:
8 + %(efivar_cpp_options)
9
10 *cc1_options:
11 + %(efivar_cpp_options) -Wmaybe-uninitialized -fno-merge-constants -fvisibility=hidden %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}}
12
13 *self_spec:
14 + %{!shared:%{!static:%{!r:-pie}}} %{static:-Wl,-no-fatal-warnings -Wl,-static -static -Wl,-z,relro,-z,now}
15
16 *link:
17 + %{!static:--fatal-warnings} --no-undefined-version --no-allow-shlib-undefined --add-needed -z now --build-id %{!static:%{!shared:-pie}} %{shared:-z relro} %{static:%<pie}