ports/127490: devel/ptmalloc port doesn't apply the -fPIC flag
Stephen Montgomery-Smith
stephen at math.missouri.edu
Fri Sep 19 04:40:02 UTC 2008
>Number: 127490
>Category: ports
>Synopsis: devel/ptmalloc port doesn't apply the -fPIC flag
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 19 04:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Stephen Montgomery-Smith
>Release: FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD cauchy 7.0-STABLE FreeBSD 7.0-STABLE #0: Mon Jul 14 15:26:47 CDT 2008 stephen at cauchy:/usr/obj/usr/src/sys/GENERIC i386
>Description:
If you try to link libptmalloc.so you get an error that it wasn't built with
the -fPIC flag.
Also, there is another port - ptmalloc2 - which is identical to ptmalloc.
>How-To-Repeat:
>Fix:
diff -ur /usr/ports-old/devel/ptmalloc/files/patch-Makefile files/patch-Makefile
--- /usr/ports-old/devel/ptmalloc/files/patch-Makefile 2008-08-14 13:46:25.000000000 -0500
+++ files/patch-Makefile 2008-09-17 11:01:07.000000000 -0500
@@ -31,7 +31,7 @@
tst-mallocstate$(T_SUF) tst-mstats$(T_SUF)
-CFLAGS = $(SYS_FLAGS) $(OPT_FLAGS) $(WARN_FLAGS) $(THR_FLAGS) $(INC_FLAGS)
-+CFLAGS += $(SYS_FLAGS) $(OPT_FLAGS) $(WARN_FLAGS) $(THR_FLAGS) $(INC_FLAGS)
++CFLAGS += $(SYS_FLAGS) $(OPT_FLAGS) $(WARN_FLAGS) $(THR_FLAGS) $(INC_FLAGS) $(SH_FLAGS)
.c.o:
$(CC) -c $(CFLAGS) $<
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list