]> granicus.if.org Git - pdns/commitdiff
Remove a.out and a2.out at the end of the function
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 24 Jan 2015 16:58:18 +0000 (17:58 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 24 Jan 2015 16:58:18 +0000 (17:58 +0100)
pdns/configure-recursor

index b0861fba176a9fce4af8bbf25413db1a7054c8a8..64dbc9ab461986be6204c79e547489fd5a733956 100755 (executable)
@@ -47,14 +47,11 @@ EOF
     if [ "$STATIC" != "semi" ] && [ "$STATIC" != "full" ] && $CXX -pie -o a2.out a.out; then
       LD_PIE="-pie"
     fi
-    rm -f a2.out
-    rm -f a.out
   fi
 
   # test for fortified source
   if $CXX $src -c -o a.out -O3 -D_FORTIFY_SOURCE=2; then
     CF_FORTIFY="-D_FORTIFY_SOURCE=2"
-    rm -f a.out
   fi
 
   # test for stack protector
@@ -63,10 +60,9 @@ EOF
     if $CXX $src -c -o a.out -O3 -fstack-protector --param ssp-buffer-size=4; then
       CF_STACK="$CF_STACK --param ssp-buffer-size=4"
     fi
-    rm -f a.out
   fi
 
-  rm -f $src
+  rm -f $src a.out a2.out
 }
 
 test_flags