Skip to content

Commit 4554c09

Browse files
committed
Fix Android build.
1 parent f63139b commit 4554c09

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

builds/posix/make.android.arm64

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ LIB_PLATFORM_RPATH=-Wl,-rpath,\$$ORIGIN
3333
LibraryFullName=$(LibraryBaseName)
3434
LibrarySoName=$(LibraryBaseName)
3535

36+
# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level
37+
PLUSPLUS_FLAGS:= -fno-rtti -std=c++20 -Werror=delete-incomplete -Werror=return-type
38+
3639
COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DARM64 -pipe -MMD -fPIC -fmessage-length=0 \
3740
-I$(ROOT)/extern/libtommath -I$(ROOT)/extern/libtomcrypt/src/headers \
3841
$(CROSS_FLAGS) -fsigned-char \

builds/posix/make.android.arme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ LIB_PLATFORM_RPATH=-Wl,-rpath,\$$ORIGIN
3333
LibraryFullName=$(LibraryBaseName)
3434
LibrarySoName=$(LibraryBaseName)
3535

36+
# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level
37+
PLUSPLUS_FLAGS:= -fno-rtti -std=c++20 -Werror=delete-incomplete -Werror=return-type
38+
3639
COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DARM -pipe -MMD -fPIC -fmessage-length=0 \
3740
-I$(ROOT)/extern/libtommath -I$(ROOT)/extern/libtomcrypt/src/headers \
3841
$(CROSS_FLAGS) -fsigned-char \

builds/posix/make.android.x86

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ LIB_PLATFORM_RPATH=-Wl,-rpath,\$$ORIGIN
3333
LibraryFullName=$(LibraryBaseName)
3434
LibrarySoName=$(LibraryBaseName)
3535

36+
# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level
37+
PLUSPLUS_FLAGS:= -fno-rtti -std=c++20 -Werror=delete-incomplete -Werror=return-type
38+
3639
COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -pipe -MMD -fPIC -fmessage-length=0 \
3740
-I$(ROOT)/extern/libtommath -I$(ROOT)/extern/libtomcrypt/src/headers \
3841
$(CROSS_FLAGS) \

builds/posix/make.android.x86_64

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ LIB_PLATFORM_RPATH=-Wl,-rpath,\$$ORIGIN
3333
LibraryFullName=$(LibraryBaseName)
3434
LibrarySoName=$(LibraryBaseName)
3535

36+
# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level
37+
PLUSPLUS_FLAGS:= -fno-rtti -std=c++20 -Werror=delete-incomplete -Werror=return-type
38+
3639
COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DAMD64 -pipe -MMD -fPIC -fmessage-length=0 \
3740
-I$(ROOT)/extern/libtommath -I$(ROOT)/extern/libtomcrypt/src/headers \
3841
$(CROSS_FLAGS) \

0 commit comments

Comments
 (0)