Skip to content

Commit

Permalink
Add build patch as recommended by GDAL doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancoult committed Oct 21, 2024
1 parent 80782c6 commit a46f68c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions patches/gdal_prep_build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/config/BUILDCONFIG.gn b/config/BUILDCONFIG.gn
index e011502..ae5758e 100644
--- a/config/BUILDCONFIG.gn
+++ b/config/BUILDCONFIG.gn
@@ -453,10 +453,10 @@ if (is_win) {
}

if (is_posix) {
- if (current_os != "aix") {
- default_compiler_configs +=
- [ "//build/config/gcc:symbol_visibility_hidden" ]
- }
+ #if (current_os != "aix") {
+ # default_compiler_configs +=
+ # [ "//build/config/gcc:symbol_visibility_hidden" ]
+ #}
}

if (is_fuchsia) {
1 change: 1 addition & 0 deletions steps/03-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ git apply -v "$PATCHES/public_headers.patch"
case "$OS" in
android)
git -C build apply -v "$PATCHES/android/build.patch"
cd build && git apply -v "$PATCHES/gdal_prep_build.patch" && cd .. # For Android and Linux
;;

ios)
Expand Down

0 comments on commit a46f68c

Please sign in to comment.