- Add missing dependency on execinfo and respect {c,ld}flags to fix build on 9.x
Submitted by: pkg-fallout Approved by: portmgr blanket
This commit is contained in:
parent
b1aa7e6920
commit
b71d4f215b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390631
2 changed files with 17 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= libCello
|
||||
PORTVERSION= 1.1.7
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://libcello.org/static/
|
||||
|
||||
|
@ -10,10 +11,13 @@ MAINTAINER= matthew.closson@gmail.com
|
|||
COMMENT= Higher level programming in C
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
||||
|
||||
USES= dos2unix gmake
|
||||
USES= dos2unix execinfo gmake
|
||||
DOS2UNIX_FILES= Makefile
|
||||
|
||||
CFLAGS+= ${EXECINFO_CPPFLAGS}
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -E 's| abs\(| labs\(|' ${WRKSRC}/src/*.c
|
||||
|
||||
|
|
|
@ -1,5 +1,16 @@
|
|||
--- Makefile.orig 2015-03-10 20:42:37 UTC
|
||||
--- Makefile.orig 2015-06-25 22:20:28 UTC
|
||||
+++ Makefile
|
||||
@@ -18,8 +18,8 @@ DEMOS := $(wildcard demos/*.c)
|
||||
DEMOS_OBJ := $(addprefix obj/,$(notdir $(DEMOS:.c=.o)))
|
||||
DEMOS_EXE := $(DEMOS:.c=)
|
||||
|
||||
-CFLAGS = -I ./include -std=gnu99 -Wall -Werror -Wno-unused -O3 -g
|
||||
-LFLAGS = -shared -g -ggdb
|
||||
+CFLAGS += -I ./include -std=gnu99 -Wall -Werror -Wno-unused
|
||||
+LFLAGS = ${LDFLAGS} -shared
|
||||
|
||||
PLATFORM := $(shell uname)
|
||||
COMPILER := $(shell $(CC) -v 2>&1 )
|
||||
@@ -42,8 +42,8 @@ else
|
||||
|
||||
CFLAGS += -fPIC
|
||||
|
|
Loading…
Reference in a new issue