Fix broken build on NetBSD.

This commit is contained in:
dholland 2011-07-17 07:45:19 +00:00
parent 73a8a62162
commit fd668fc366
2 changed files with 17 additions and 9 deletions

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.11 2011/07/13 19:47:38 adam Exp $
$NetBSD: distinfo,v 1.12 2011/07/17 07:45:19 dholland Exp $
SHA1 (glew-1.6.0.tgz) = ed555d15d0f01239b262c4cf803e97d60d8a18b6
RMD160 (glew-1.6.0.tgz) = 5b896cb9bf3b2058cc6a5e167d64bae04b46eb6c
Size (glew-1.6.0.tgz) = 494713 bytes
SHA1 (patch-aa) = 8f1d6f48e26f8ce13282b676ac18ac49f596ae9b
SHA1 (patch-aa) = 0d1afd9009f5bb89868ca6d9c5f6561fce3d9e4b
SHA1 (patch-ac) = f071608a22b201575f009fb8a257d27deab2c8fc
SHA1 (patch-ad) = 0801264561feb144179f7e6904080873529890ff

View file

@ -1,8 +1,10 @@
$NetBSD: patch-aa,v 1.2 2008/09/01 10:06:33 dholland Exp $
$NetBSD: patch-aa,v 1.3 2011/07/17 07:45:19 dholland Exp $
--- config/Makefile.netbsdelf.orig 2006-02-03 13:24:33.000000000 +0000
Configuration for NetBSD. (Also used for Dragonfly.)
--- config/Makefile.netbsdelf.orig 2011-07-17 07:35:16.000000000 +0000
+++ config/Makefile.netbsdelf
@@ -0,0 +1,23 @@
@@ -0,0 +1,29 @@
+NAME = $(GLEW_NAME)
+CC = cc
+LD = ld
@ -21,8 +23,14 @@ $NetBSD: patch-aa,v 1.2 2008/09/01 10:06:33 dholland Exp $
+WARN = -Wall -W
+POPT ?= -O2
+BIN.SUFFIX =
+LIB.SONAME = lib$(NAME).so.$(SO_MAJOR)
+LIB.DEVLNK = lib$(NAME).so
+LIB.SHARED = lib$(NAME).so.$(SO_VERSION)
+LIB.STATIC = lib$(NAME).a
+LIB.SONAME = lib$(NAME).so.$(SO_MAJOR)
+LIB.DEVLNK = lib$(NAME).so
+LIB.SHARED = lib$(NAME).so.$(SO_VERSION)
+LIB.STATIC = lib$(NAME).a
+LDFLAGS.SO = -shared -soname $(LIB.SONAME)
+LIB.SONAME.MX = lib$(NAME)mx.so.$(SO_MAJOR)
+LIB.DEVLNK.MX = lib$(NAME)mx.so
+LIB.SHARED.MX = lib$(NAME)mx.so.$(SO_VERSION)
+LIB.STATIC.MX = lib$(NAME)mx.a
+LDFLAGS.SO.MX = -shared -soname $(LIB.SONAME.MX)
+SHARED_OBJ_EXT = pic_o