rake-convert 0.0.2 → 0.0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/rake/convert.rb +7 -4
  2. metadata +2 -1
data/lib/rake/convert.rb CHANGED
@@ -99,8 +99,10 @@ cat > $FILE.c <<EOF
99
99
  EOF
100
100
 
101
101
  echo -n "Checking for #{lib}... "
102
- if [[ "`($CC $CFLAGS -o $FILE $FILE.c -l#{lib}) 2>&1`" == "" ]]; then
102
+ if [[ "`($CC $CFLAGS -o $FILE $FILE.c -l#{lib} $LIBS) 2>&1`" == "" ]]; then
103
103
  LAST=yes
104
+
105
+ LIBS="$LIBS -l#{lib}"
104
106
  else
105
107
  LAST=no
106
108
  fi
@@ -317,9 +319,10 @@ task :convert => clean do |task|
317
319
  }
318
320
 
319
321
  File.open('configure', 'w', 0755) {|f|
320
- f.write "CC=${CC:-gcc}\n"
321
- f.write "FILE=`mktemp -u`\n"
322
- f.write "DEFS=\n"
322
+ f.puts 'CC=${CC:-gcc}'
323
+ f.puts 'LIBS='
324
+ f.puts 'FILE=`mktemp -u`'
325
+ f.puts 'DEFS='
323
326
 
324
327
  f.write $configure
325
328
  }
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 2
9
- version: 0.0.2
9
+ - 1
10
+ version: 0.0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - meh.