]> Kevux Git Server - fll/commitdiff
Bugfix: remove more cases where build_alt variables where still being used
authorKevin Day <thekevinday@gmail.com>
Fri, 9 Jan 2015 02:57:44 +0000 (20:57 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 9 Jan 2015 02:57:44 +0000 (20:57 -0600)
build/scripts/generate.sh

index 7ae9afb14fc02ecef26036d67452aa43ed4a8a38..f47a66400351cb89355d2111bc791038f020ec49 100644 (file)
@@ -327,7 +327,6 @@ generate_operation_build(){
     if [[ $sources_library != "" ]] ; then
       for i in $sources_library ; do
         sources="$sources${path_build}libraries/$i.o "
-        sources_alt="$sources_alt$sources "
 
         echo $compiler $path_c$i -c -static -o ${path_build}libraries/$i.o $arguments ${variables[$(generate_id flags_static)]} ${variables[$(generate_id flags_library)]} 
         $compiler $path_c$i -c -static -o ${path_build}libraries/$i.o $arguments ${variables[$(generate_id flags_static)]} ${variables[$(generate_id flags_library)]} || failure=1
@@ -338,38 +337,25 @@ generate_operation_build(){
       done
 
       if [[ $failure == "" ]] ; then
-        echo $linker rcs ${path_build}libraries/lib$name.a $sources_alt
-        $linker rcs ${path_build}libraries/lib$name.a $sources_alt || failure=1
+        echo $linker rcs ${path_build}libraries/lib$name.a $sources
+        $linker rcs ${path_build}libraries/lib$name.a $sources || failure=1
       fi
     fi
 
     if [[ $failure == "" && $sources_program != "" ]] ; then
       sources=
-      sources_alt=
-      if [[ $alt == "alt" ]] ; then
-        if [[ $sources_library != "" ]] ; then
-          for i in $sources_library ; do
-            sources_alt="$sources_alt$path_c$i "
-          done
-        fi
-
-        for i in $sources_program ; do
-          sources_alt="$sources_alt$path_c$i "
-        done
-      else
-        if [[ $sources_library != "" ]] ; then
-          for i in $sources_library ; do
-            sources="$sources$path_c$i "
-          done
-        fi
-
-        for i in $sources_program ; do
+      if [[ $sources_library != "" ]] ; then
+        for i in $sources_library ; do
           sources="$sources$path_c$i "
         done
       fi
 
-      echo $compiler $sources -static -o ${path_build}programs/$name $sources_alt $arguments ${variables[$(generate_id flags_static)]} ${variables[$(generate_id flags_program)]}
-      $compiler $sources -static -o ${path_build}programs/$name $sources_alt $arguments ${variables[$(generate_id flags_static)]} ${variables[$(generate_id flags_program)]} || failure=1
+      for i in $sources_program ; do
+        sources="$sources$path_c$i "
+      done
+
+      echo $compiler -static -o ${path_build}programs/$name $sources $arguments ${variables[$(generate_id flags_static)]} ${variables[$(generate_id flags_program)]}
+      $compiler -static -o ${path_build}programs/$name $sources $arguments ${variables[$(generate_id flags_static)]} ${variables[$(generate_id flags_program)]} || failure=1
     fi
   fi