[Groonga-commit] groonga/groonga [master] Use --cflags-only-I only for $groonga_feature_path

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 4日 (月) 14:17:59 JST


Ryo Onodera	2012-06-04 14:17:59 +0900 (Mon, 04 Jun 2012)

  New Revision: 3fe8d89de051cbf5e2c15a53ba10ca9c0dd620cf

  Log:
    Use --cflags-only-I only for $groonga_feature_path

  Modified files:
    src/nginx-module/config

  Modified: src/nginx-module/config (+5 -4)
===================================================================
--- src/nginx-module/config    2012-06-04 14:08:55 +0900 (ae4080d)
+++ src/nginx-module/config    2012-06-04 14:17:59 +0900 (124594d)
@@ -1,11 +1,12 @@
-groonga_without_switch()
+groonga_strip_switch()
 {
   # skip "-I" from "-I/usr/..."
-  echo "$1" | tail -c +3
+  tail -c +3
 }
 
-groonga_cflags="$(pkg-config --cflags-only-I groonga)"
-groonga_feature_path="$(groonga_without_switch "$groonga_cflags")"
+groonga_cflags="$(pkg-config --cflags groonga)"
+groonga_feature_path="$(pkg-config --cflags-only-I groonga |
+                        groonga_strip_switch)"
 groonga_libs="$(pkg-config --libs groonga)"
 
 ngx_feature="groonga"




Groonga-commit メーリングリストの案内
Back to archive index