1
0
Эх сурвалжийг харах

Remove "ignoring duplicate libraries" warnings during tests

DarthSim 7 сар өмнө
parent
commit
ca409b4809

+ 1 - 0
.lefthook/pre-push/test

@@ -4,6 +4,7 @@ if [ -x "$(which brew)" ]; then
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libarchive)/lib/pkgconfig"
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix cfitsio)/lib/lib/pkgconfig"
+  export CGO_LDFLAGS="$CGO_LDFLAGS -Wl,-no_warn_duplicate_libraries"
 fi
 
 export CGO_LDFLAGS_ALLOW="-s|-w"