Patchwork [1/4] gnu: Add gcc-objc-4.9.

login
register
mail settings
Submitter Ricardo Wurmus
Date May 16, 2016, 6:14 p.m.
Message ID <1463422446-10382-1-git-send-email-rekado@elephly.net>
Download mbox | patch
Permalink /patch/12284/
State New
Headers show

Comments

Ricardo Wurmus - May 16, 2016, 6:14 p.m.
* gnu/packages/gcc.scm (gcc-objc-4.9): New variable.
---
 gnu/packages/gcc.scm | 9 +++++++++
 1 file changed, 9 insertions(+)
Ludovic Courtès - May 19, 2016, 1:12 p.m.
Ricardo Wurmus <rekado@elephly.net> skribis:

> * gnu/packages/gcc.scm (gcc-objc-4.9): New variable.

[...]

> * gnu/packages/gcc.scm (gcc-objc): New variable.

[...]

> * gnu/packages/gcc.scm (gcc-objc++-4.9): New variable.

[...]

> * gnu/packages/gcc.scm (gcc-objc++): New variable.

All LGTM, thanks!

Ludo’.

Patch

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 740ed51..64035b3 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -615,6 +615,15 @@  as the 'native-search-paths' field."
                      (variable "LIBRARY_PATH")
                      (files '("lib" "lib64"))))))
 
+(define-public gcc-objc-4.9
+  (custom-gcc gcc-4.9 "gcc-objc" '("objc")
+              (list (search-path-specification
+                     (variable "OBJC_INCLUDE_PATH")
+                     (files '("include")))
+                    (search-path-specification
+                     (variable "LIBRARY_PATH")
+                     (files '("lib" "lib64"))))))
+
 (define-public gcc-objc++-4.8
   (custom-gcc gcc-4.8 "gcc-objc++" '("obj-c++")
               (list (search-path-specification