summaryrefslogtreecommitdiff
path: root/gcc/config/linux-android.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/linux-android.h')
-rw-r--r--gcc/config/linux-android.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/linux-android.h b/gcc/config/linux-android.h
index 94c52748fdb..acbc6627f95 100644
--- a/gcc/config/linux-android.h
+++ b/gcc/config/linux-android.h
@@ -53,8 +53,8 @@
"%{!static: -ldl}"
#define ANDROID_STARTFILE_SPEC \
- "%{!shared:" \
+ "%{shared: crtbegin_so%O%s;:" \
" %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s}}"
#define ANDROID_ENDFILE_SPEC \
- "%{!shared: crtend_android%O%s}"
+ "%{shared: crtend_so%O%s;: crtend_android%O%s}"