Sorry, was travelling for two weeks and this fell off the wagon...

On 30 June 2013 at 10:34, Petr Salinger wrote:
| Package: r-base
| Version: 3.0.1-3
| Severity: serious
| Tags: patch
| User: debian-...@lists.debian.org
| Usertags: kfreebsd
| 
| 
| Hi,
| 
| the current version fails to build on GNU/kFreeBSD
| using current default compiler 4.8 with -O3.
| 
| It does build on kfreebsd-amd64 using -O2.
| 
| It might or might not be kfreebsd specific.
| The note bellow change indicates that gcc-4.7 needed "-O2" too.
| 
| Petr
| 
| --- debian/rules
| +++ debian/rules
| @@ -76,7 +76,7 @@
|   f95compiler     = gfortran
|   compiler       = "gcc -std=gnu99"
|   cxxcompiler    = g++
| -optimflags     = -O3 -pipe
| +optimflags     = -O2 -pipe
| 
|   # edd 22 Apr 2012  gcc-4.7 needs -O2 to build R (also #67359)
|   ifneq "$(shell gcc --version | head -1 | cut -d' ' -f4 | grep '^4.7')" ""

I will set it to -O2 but _only_ for your arch. I do so for others already
(see eg 

## lam...@debian.org 06 Dec 2001  hppa needs -ffunction-sections  
ifeq ($(arch),hppa)
optimflags      = -O2 -ffunction-sections 
endif

## edd 20 Jun 2002      no optimisation or debugging on baby systems
## edd 02 Jun 2003      use this on arm only 
## edd 12 May 2010      no longer use it on arm either -- thx Modestas
## edd 04 Aug 2010      on mips and mipsel, don't use -g
##ifneq "$(findstring $(arch), m68k arm)" ""
#ifneq "$(findstring $(arch), arm)" ""
ifneq "$(findstring $(arch), mips mipsel)" ""
optimflags      = -g0 
#optimflags     = -O0 -g0 
endif
)

So with 

arch            := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
buildarch       := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

what can I test for to get your kFreeBSD variant?  Do I need a new variable?
If so, which?

Dirk

-- 
Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to