guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4] gnu: Add bullet.


From: Tomas Cech
Subject: Re: [PATCH v4] gnu: Add bullet.
Date: Mon, 15 Dec 2014 11:48:31 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.4 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Sat, 13 Dec 2014 10:58:44 -0500,
David Thompson wrote:
> 
> Tomáš Čech <address@hidden> writes:
> > ...
> > @@ -0,0 +1,13 @@
> > +diff -up bullet-2.82-r2704/CMakeLists.txt.orig 
> > bullet-2.82-r2704/CMakeLists.txt
> > +--- bullet-2.82-r2704/CMakeLists.txt.orig  2014-12-13 00:09:49.648710180 
> > +0100
> > ++++ bullet-2.82-r2704/CMakeLists.txt       2014-12-13 00:10:44.205708986 
> > +0100
> > +@@ -17,6 +17,9 @@ IF (NOT CMAKE_BUILD_TYPE)
> > +  SET(CMAKE_BUILD_TYPE "Release")
> > + ENDIF (NOT CMAKE_BUILD_TYPE) 
> > + 
> > ++SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -fPIC")
> > ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
> > ++
> 
> Is the second 'SET' redundant?

Yes, it is wrong.

> Rather than using this patch file, you should instead add a new build
> phase to the bullet package.  Add something like this to the arguments
> field, after '#:tests? #f':
> 
>   #:phases (alist-cons-before
>             'configure 'set-env-vars
>             (lambda _
>               (setenv "CMAKE_CXX_FLAGS"
>                       (string-append (getenv "CMAKE_C_FLAGS")
>             "-fPIC"))))

I liked that idea and used that approach. Updated patch is following...

Thanks for your review and patience.

Best regards,

S_W



reply via email to

[Prev in Thread] Current Thread [Next in Thread]