提交 e2a2ed06 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

move EXTRA_CFLAGS/LDFLAGS to the very beginning

Now, we compile all the tests with the values passed through the command
line.
Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 0c439cbf
......@@ -47,6 +47,10 @@ for opt do
;;
--cpu=*) cpu="$optarg"
;;
--extra-cflags=*) CFLAGS="$optarg $CFLAGS"
;;
--extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS"
;;
esac
done
......@@ -388,9 +392,9 @@ for opt do
;;
--install=*) install="$optarg"
;;
--extra-cflags=*) EXTRA_CFLAGS="$optarg"
--extra-cflags=*)
;;
--extra-ldflags=*) EXTRA_LDFLAGS="$optarg"
--extra-ldflags=*)
;;
--cpu=*)
;;
......@@ -1780,8 +1784,8 @@ fi
echo "AR=$ar" >> $config_host_mak
echo "OBJCOPY=$objcopy" >> $config_host_mak
echo "LD=$ld" >> $config_host_mak
echo "CFLAGS=$CFLAGS $EXTRA_CFLAGS" >> $config_host_mak
echo "LDFLAGS=$LDFLAGS $EXTRA_LDFLAGS" >> $config_host_mak
echo "CFLAGS=$CFLAGS" >> $config_host_mak
echo "LDFLAGS=$LDFLAGS" >> $config_host_mak
echo "ARLIBS_BEGIN=$arlibs_begin" >> $config_host_mak
echo "ARLIBS_END=$arlibs_end" >> $config_host_mak
echo "EXESUF=$EXESUF" >> $config_host_mak
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册