Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2001 06:19:37 -0400 (EDT)
From:      pat@databits.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/29598: Fix linker error for graphics/togl (Bento)
Message-ID:  <200108101019.f7AAJbx52741@cc92687-a.wlgrv1.pa.home.com>

next in thread | raw e-mail | index | archive | help

>Number:         29598
>Category:       ports
>Synopsis:       Fix linker error for graphics/togl (Bento)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 10 03:20:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Li
>Release:        FreeBSD 4.4-PRERELEASE i386
>Organization:
N/A
>Environment:
System: FreeBSD bottlenek 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #0: Sun Aug 5 00:29:13 EDT 2001 root@bottlenek:/usr/src/sys/compile/BOTTLENEK i386
>Description:
Fix linker error noted by bento.
>How-To-Repeat:
N/A
>Fix:
diff -ruN /usr/ports/graphics/togl/Makefile togl/Makefile
--- /usr/ports/graphics/togl/Makefile	Thu Aug  3 05:24:54 2000
+++ togl/Makefile	Fri Aug 10 03:37:05 2001
@@ -19,7 +19,8 @@
 
 USE_MESA=	yes
 ALL_TARGET=	default
-
+MAKE_ENV=	PTHREAD_LIBS="${PTHREAD_LIBS}" \
+		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
 TOGL_INSTDIR=	${PREFIX}/lib/tk8.2/${DISTNAME}
 
 .include <bsd.port.pre.mk>
diff -ruN /usr/ports/graphics/togl/files/patch-aa togl/files/patch-aa
--- /usr/ports/graphics/togl/files/patch-aa	Fri Oct 13 16:20:36 2000
+++ togl/files/patch-aa	Fri Aug 10 03:41:27 2001
@@ -36,7 +36,7 @@
  
  # Libraries to link with (-ldl for Linux only?):
 -LIBS = -ltk -ltcl -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl
-+LIBS = -ltk82 -ltcl82 -lGLU -lGL -lX11 -lXmu -lXext -lXt -lm
++LIBS = -ltk82 -ltcl82 -lGLU -lGL -lX11 -lXmu -lXext -lXt -lm ${PTHREAD_LIBS}
  
  TK_FLAGS =
  
@@ -45,7 +45,7 @@
  
  
 -CFLAGS = $(COPTS) $(INCLUDES) $(TK_FLAGS)
-+CFLAGS += $(COPTS) $(INCLUDES) $(TK_FLAGS)
++CFLAGS += $(COPTS) $(INCLUDES) $(TK_FLAGS) ${PTHREAD_CFLAGS}
  
  LFLAGS = $(LIBDIRS)
  
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108101019.f7AAJbx52741>