Remove LDFLAGS from source code, specify them build-time

This commit is contained in:
DarthSim
2022-06-14 15:19:50 +04:00
parent 8a68e710f1
commit df0cc4e19b
2 changed files with 1 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ ARG BUILDPLATFORM
ARG TARGETPLATFORM ARG TARGETPLATFORM
COPY . . COPY . .
RUN docker/go.sh build -v -o /usr/local/bin/imgproxy RUN docker/go.sh build -v -ldflags "-s -w" -o /usr/local/bin/imgproxy
# ================================================================================================== # ==================================================================================================
# Final image # Final image

View File

@@ -2,7 +2,6 @@ package vips
/* /*
#cgo pkg-config: vips #cgo pkg-config: vips
#cgo LDFLAGS: -s -w
#cgo CFLAGS: -O3 #cgo CFLAGS: -O3
#include "vips.h" #include "vips.h"
*/ */