1. Carl D
  2. mysql-client.egg

Commits

Carl D  committed dc2fa0f

get flags from mysql_config pipe

  • Participants
  • Parent commits 091cfe4
  • Branches master

Comments (0)

Files changed (1)

File mysql.setup

View file
  • Ignore whitespace
-; To compile:
-;   CSC_OPTIONS=`mysql_config --include --libs` chicken-install -n
+(use posix)
 
-(compile -C -ggdb -k -v -s mysql.scm )
+(define iflags '())
+(define lflags '())
 
-(install-extension 'mysql '("mysql.so"))
+(with-input-from-pipe 
+  "mysql_config --include" 
+  (lambda() 
+    (set! iflags (read-line))))
+
+(with-input-from-pipe 
+  "mysql_config --libs" 
+  (lambda() 
+    (set! lflags (read-line))))
+
+(compile -C ,iflags
+         -L ,lflags
+         -k -v -s mysql.scm)
+
+(install-extension 
+  'mysql 
+  '("mysql.so")
+  '((version "0.0")))