Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Aug 2012 18:25:03 GMT
From:      svn-freebsd-gecko@chruetertee.ch
To:        freebsd-gecko@freebsd.org
Subject:   [SVN-Commit] r907 - branches/experimental/security/nss/files
Message-ID:  <201208011825.q71IP3P5015168@trillian.chruetertee.ch>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Aug  1 18:25:03 2012
New Revision: 907

Log:
- simplify arch detection, no need to duplicate CPU_ARCH = $(OS_TEST)
- rename powerpc to ppc, that's what everyone else uses

Modified:
   branches/experimental/security/nss/files/patch-..::coreconf::FreeBSD.mk

Modified: branches/experimental/security/nss/files/patch-..::coreconf::FreeBSD.mk
==============================================================================
--- branches/experimental/security/nss/files/patch-..::coreconf::FreeBSD.mk	Wed Aug  1 16:12:38 2012	(r906)
+++ branches/experimental/security/nss/files/patch-..::coreconf::FreeBSD.mk	Wed Aug  1 18:25:03 2012	(r907)
@@ -13,33 +13,19 @@
  RANLIB			= ranlib
  
  CPU_ARCH		= $(OS_TEST)
-@@ -50,7 +50,26 @@
- CPU_ARCH		= x86
- endif
+@@ -52,6 +52,12 @@ endif
  ifeq ($(CPU_ARCH),amd64)
  CPU_ARCH		= x86_64
-+USE_64			= 1
-+endif
-+ifeq ($(OS_TEST),alpha)
-+CPU_ARCH		= alpha
-+endif
-+ifeq ($(OS_TEST),powerpc64)
-+CPU_ARCH		= powerpc
-+USE_64			= 1
-+endif
-+ifeq ($(OS_TEST),powerpc)
-+CPU_ARCH		= powerpc
+ endif
++ifneq (,$(filter powerpc%, $(CPU_ARCH)))
++CPU_ARCH		= ppc
 +endif
-+ifeq ($(OS_TEST),sparc64)
-+CPU_ARCH		= sparc64
++ifneq (,$(filter %64, $(CPU_ARCH)))
 +USE_64			= 1
 +endif
-+ifeq ($(OS_TEST),ia64)
-+CPU_ARCH		= ia64
-+USE_64			= 1
- endif
  
  OS_CFLAGS		= $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+ 
 @@ -65,20 +80,18 @@
  USE_PTHREADS		= 1
  DEFINES			+= -D_THREAD_SAFE -D_REENTRANT



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