mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-28 06:30:31 +00:00
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
--- runc-1.2.4/Makefile 2025-01-07 04:50:22.000000000 +0530
|
|
+++ runc-1.2.4.mod/Makefile 2025-01-17 02:46:37.087174408 +0530
|
|
@@ -30,28 +30,12 @@
|
|
TRIMPATH := -trimpath
|
|
|
|
GO_BUILDMODE :=
|
|
-# Enable dynamic PIE executables on supported platforms.
|
|
-ifneq (,$(filter $(GOARCH),386 amd64 arm arm64 ppc64le riscv64 s390x))
|
|
- ifeq (,$(findstring -race,$(EXTRA_FLAGS)))
|
|
- GO_BUILDMODE := "-buildmode=pie"
|
|
- endif
|
|
-endif
|
|
GO_BUILD := $(GO) build $(TRIMPATH) $(GO_BUILDMODE) \
|
|
$(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \
|
|
-ldflags "$(LDFLAGS_COMMON) $(EXTRA_LDFLAGS)"
|
|
|
|
GO_BUILDMODE_STATIC :=
|
|
LDFLAGS_STATIC := -extldflags -static
|
|
-# Enable static PIE executables on supported platforms.
|
|
-# This (among the other things) requires libc support (rcrt1.o), which seems
|
|
-# to be available only for arm64 and amd64 (Debian Bullseye).
|
|
-ifneq (,$(filter $(GOARCH),arm64 amd64))
|
|
- ifeq (,$(findstring -race,$(EXTRA_FLAGS)))
|
|
- GO_BUILDMODE_STATIC := -buildmode=pie
|
|
- LDFLAGS_STATIC := -linkmode external -extldflags -static-pie
|
|
- endif
|
|
-endif
|
|
-# Enable static PIE binaries on supported platforms.
|
|
GO_BUILD_STATIC := $(GO) build $(TRIMPATH) $(GO_BUILDMODE_STATIC) \
|
|
$(EXTRA_FLAGS) -tags "$(BUILDTAGS) netgo osusergo" \
|
|
-ldflags "$(LDFLAGS_COMMON) $(LDFLAGS_STATIC) $(EXTRA_LDFLAGS)"
|