From b3cd63a6b2e57cd7327cc746295b4660cf597cb9 Mon Sep 17 00:00:00 2001 From: abc Date: Thu, 30 Mar 2023 09:22:00 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0fPIC=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index df540bc..7cc2cf9 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -8,6 +8,7 @@ config("zlib_config") { "-Werror", "-Wno-strict-prototypes", "-Wimplicit-function-declaration", + "-fPIC", ] } @@ -85,5 +86,6 @@ ft_shared_library("shared_libz") { ] configs = [ ":zlib_config" ] public_configs = [ ":zlib_public_config" ] + #symlink_target_name = [ "libz.so" ] } -- Gitee