Skip to content

Commit 514101b

Browse files
committed
fix: update amnezia-libxray build.sh ldflags patch pattern
1 parent 25b816f commit 514101b

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

recipes/amnezia-libxray/conanfile.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,8 @@ def _patch_sources(self):
4949
os.chmod(build_path, build_stat.st_mode | stat.S_IEXEC)
5050
replace_in_file(self,
5151
build_path,
52-
'-ldflags="-w -s -buildid="',
53-
'-ldflags="-w -s -buildid= -extldflags=-Wl,-z,max-page-size=16384"',
54-
)
55-
replace_in_file(self,
56-
build_path,
57-
" rm -f go.mod\n rm -f go.sum\n go mod init github.com/amnezia-vpn/amnezia-libxray\n go mod tidy",
58-
" go mod tidy",
52+
'-ldflags="-w -s -buildid= -checklinkname=0"',
53+
'-ldflags="-w -s -buildid= -checklinkname=0 -extldflags=-Wl,-z,max-page-size=16384"',
5954
)
6055

6156
def build(self):

0 commit comments

Comments
 (0)