mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix compile for Android 5
Android 5 can only run position independent executables. Note that this breaks Android 4.0 and earlier. See here for more info: http://stackoverflow.com/questions/24818902/running-a-native-library-on-android-l-error-only-position-independent-executab Thanks to Peter Osterlund for the support. No functional change
This commit is contained in:
parent
42b48b08e8
commit
202a78e8e4
1 changed files with 8 additions and 0 deletions
|
@ -310,6 +310,14 @@ ifeq ($(comp),gcc)
|
|||
endif
|
||||
endif
|
||||
|
||||
### 3.12 Android 5 can only run position independent executables. Note that this
|
||||
### breaks Android 4.0 and earlier.
|
||||
ifeq ($(arch),armv7)
|
||||
CXXFLAGS += -fPIE
|
||||
LDFLAGS += -fPIE -pie
|
||||
endif
|
||||
|
||||
|
||||
### ==========================================================================
|
||||
### Section 4. Public targets
|
||||
### ==========================================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue