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.
- data/lib/rake/convert.rb +7 -4
- 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.
|
321
|
-
f.
|
322
|
-
f.
|
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
|
}
|