devel/mold: Update to 1.1

This commit is contained in:
Ashish SHUKLA 2022-02-21 23:40:12 +00:00
parent 128f6c8e6d
commit cdebf177ca
No known key found for this signature in database
GPG key ID: C746CFA9E74FA4B0
3 changed files with 17 additions and 14 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= mold
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.3
DISTVERSION= 1.1
CATEGORIES= devel
MAINTAINER= ashish@FreeBSD.org

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1644335355
SHA256 (rui314-mold-v1.0.3_GH0.tar.gz) = 488c12058b4c7c77bff94c6f919e40b2f12c304214e2e0d7d4833c21167837c0
SIZE (rui314-mold-v1.0.3_GH0.tar.gz) = 4501162
TIMESTAMP = 1645486596
SHA256 (rui314-mold-v1.1_GH0.tar.gz) = 2f04bb2cd58797258c4f5f6f29fd2667f8b6c6b2bc76c731fede526884ea9a0c
SIZE (rui314-mold-v1.1_GH0.tar.gz) = 4522886

View file

@ -1,26 +1,29 @@
--- Makefile.orig 2022-02-08 16:00:48 UTC
--- Makefile.orig 2022-02-20 07:40:17 UTC
+++ Makefile
@@ -1,4 +1,4 @@
@@ -4,7 +4,7 @@
VERSION = 1.1
-PREFIX = /usr/local
+PREFIX = %%PREFIX%%
BINDIR = $(PREFIX)/bin
LIBDIR = $(PREFIX)/lib
LIBEXECDIR = $(PREFIX)/libexec
@@ -18,7 +18,7 @@ endif
@@ -27,7 +27,7 @@ PKG_CONFIG = pkg-config
# If you want to keep symbols in the installed binary, run make with
# `STRIP=true` to run /bin/true instead of the strip command.
-STRIP = strip
+STRIP = $(STRIP_CMD)
SRCS=$(wildcard *.cc elf/*.cc macho/*.cc)
HEADERS=$(wildcard *.h elf/*.h macho/*.h)
@@ -99,8 +99,8 @@ endif
SRCS = $(wildcard *.cc elf/*.cc macho/*.cc)
OBJS = $(SRCS:%.cc=out/%.o)
@@ -103,8 +103,8 @@ ifneq ($(OS), Darwin)
endif
# Use pkg-config to know where libcrypto resides.
ifneq ($(OS), Darwin)
- MOLD_CXXFLAGS += $(shell pkg-config --cflags-only-I openssl)
- MOLD_LDFLAGS += $(shell pkg-config --libs-only-L openssl) -lcrypto
ifeq ($(NEEDS_LIBCRYPTO), 1)
- MOLD_CXXFLAGS += $(shell $(PKG_CONFIG) --cflags-only-I openssl)
- MOLD_LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-L openssl) -lcrypto
+ MOLD_CXXFLAGS += -I${OPENSSLINC}
+ MOLD_LDFLAGS += -L${OPENSSLLIB} -lcrypto
endif