Fix build on SunOS with gcc by replacing sunpro arguments with their gcc

counterparts. The wrappers will replace them again for sunpro builds.
This commit is contained in:
hans 2012-03-21 18:24:00 +00:00
parent 2f15a4a4d0
commit 2478d46da6
2 changed files with 13 additions and 3 deletions

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.7 2011/10/17 08:47:51 obache Exp $
$NetBSD: distinfo,v 1.8 2012/03/21 18:24:00 hans Exp $
SHA1 (pam_af-1.0.2.tar.bz2) = e3856a33d79beafa8d4e8cb44b19cbf79a3ed422
RMD160 (pam_af-1.0.2.tar.bz2) = 0c4163d811ba83de32e9b4633780ac76c8d10d8f
Size (pam_af-1.0.2.tar.bz2) = 17991 bytes
SHA1 (patch-aa) = 90efac36df429a51461b7a912f3ea0db923f630e
SHA1 (patch-aa) = 9c8e44c7b25e268777967c742a6946abe0c80316
SHA1 (patch-ab) = 93adab4e1a230e46f5742ecb4390ff50d96d56d5
SHA1 (patch-ad) = 0f46fecfec3b920a08e2c22c14ada368214d6a69

View file

@ -1,10 +1,20 @@
$NetBSD: patch-aa,v 1.3 2011/01/25 09:07:58 obache Exp $
$NetBSD: patch-aa,v 1.4 2012/03/21 18:24:00 hans Exp $
* use gcc flags on SunOS
* for PKGSRC layout
* treat *BSDs same as FreeBSD.
--- Makefile.orig 2006-11-07 00:26:58.000000000 +0000
+++ Makefile
@@ -69,7 +69,7 @@ CFLAGS = -I./common/ -DPIC
CFLAGS_GCC = -O2 -Wall -Werror -Wno-format-y2k \
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch \
-Wshadow -Wchar-subscripts -Winline -Wnested-externs -fPIC
-CFLAGS_SUN = -KPIC -xO2 -D_SUN_PAM_ -D_HAVE_USERDEFS_H_
+CFLAGS_SUN = -fPIC -O2 -D_SUN_PAM_ -D_HAVE_USERDEFS_H_
CFLAGS_HP = -Ae +w1 +W 474,486,542 +z +O2
CFLAGS_BSD = -D_HAVE_PATHS_H_ -D_HAVE_ERR_H_ -D_HAVE_GETPROGNAME_ -D_USE_MODULE_ENTRY_ -D_HAVE_SALEN_
CFLAGS_GNU = -D_GNU_SOURCE -D_HAVE_PATHS_H_ -D_HAVE_ERR_H_ -D_HAVE_FLOCK_ \
@@ -102,16 +102,16 @@ DISTTOOLMAN = pam_af_tool.8
LIBMAN = $(LIBDIR)/$(DISTLIBMAN)
TOOLMAN = $(TOOLDIR)/$(DISTTOOLMAN)