diff options
author | Yury Usishchev <y.usishchev@samsung.com> | 2014-12-10 12:46:57 +0300 |
---|---|---|
committer | Yury Usishchev <y.usishchev@samsung.com> | 2015-05-12 09:38:35 +0300 |
commit | 539836bbf6372dfce71173edacbdc047042ac9a2 (patch) | |
tree | f2e0e3c25c8b4535c6e7f9e764eb96fdf175db2e | |
parent | edf906fa2e72b3f33e00a2262962be62e01df9db (diff) | |
download | rpm-539836bbf6372dfce71173edacbdc047042ac9a2.tar.gz rpm-539836bbf6372dfce71173edacbdc047042ac9a2.tar.bz2 rpm-539836bbf6372dfce71173edacbdc047042ac9a2.zip |
Add support for global LDFLAGS
New variable global_LDFLAGS can be defined in project config
to set default LDFLAGS during build.
Change-Id: I4da460c26b3f693833c74cb19d7234e78dbd4fc7
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
-rw-r--r-- | packaging/rpm-tizen_macros | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros index 253f89c33..c52767397 100644 --- a/packaging/rpm-tizen_macros +++ b/packaging/rpm-tizen_macros @@ -202,6 +202,7 @@ unset DISPLAY\ CFLAGS="%optflags" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \ +LDFLAGS="${LDFLAGS:-%{?global_LDFLAGS}}"; export LDFLAGS ; \ LD_AS_NEEDED=1; export LD_AS_NEEDED ; \ %{nil} |