Thomas Coldrick pushed to branch coldtom/autotools-libtool at BuildStream / buildstream
Commits:
-
d8faf3a8
by Thomas Coldrick at 2018-08-20T12:11:48Z
1 changed file:
Changes:
| ... | ... | @@ -23,6 +23,7 @@ variables: |
| 23 | 23 |
conf-extra: ''
|
| 24 | 24 |
|
| 25 | 25 |
conf-cmd: ./configure
|
| 26 |
+ |
|
| 26 | 27 |
conf-args: |
|
| 27 | 28 |
|
| 28 | 29 |
--prefix=%{prefix} \
|
| ... | ... | @@ -44,34 +45,52 @@ variables: |
| 44 | 45 |
%{conf-cmd} %{conf-args}
|
| 45 | 46 |
|
| 46 | 47 |
make: make
|
| 48 |
+ |
|
| 47 | 49 |
make-install: make -j1 DESTDIR="%{install-root}" install
|
| 48 | 50 |
|
| 49 | 51 |
# Set this if the sources cannot handle parallelization.
|
| 50 | 52 |
#
|
| 51 | 53 |
# notparallel: True
|
| 52 | 54 |
|
| 55 |
+ |
|
| 56 |
+ remove_libtool_modules: "true"
|
|
| 57 |
+ remove_libtool_libraries: "true"
|
|
| 58 |
+ delete_libtool_files: |
|
|
| 59 |
+ find "%{install-root}" -name "*.la" -print0 | while read -d '' -r file; do
|
|
| 60 |
+ if grep '^shouldnotlink=yes$' "${file}" &>/dev/null; then
|
|
| 61 |
+ if %{remove_libtool_modules}; then
|
|
| 62 |
+ echo "Removing ${file}."
|
|
| 63 |
+ rm "${file}"
|
|
| 64 |
+ else
|
|
| 65 |
+ echo "Not removing ${file}."
|
|
| 66 |
+ fi
|
|
| 67 |
+ else
|
|
| 68 |
+ if %{remove_libtool_libraries}; then
|
|
| 69 |
+ echo "Removing ${file}."
|
|
| 70 |
+ rm "${file}"
|
|
| 71 |
+ else
|
|
| 72 |
+ echo "Not removing ${file}."
|
|
| 73 |
+ fi
|
|
| 74 |
+ fi
|
|
| 75 |
+ done
|
|
| 76 |
+ |
|
| 53 | 77 |
config:
|
| 54 | 78 |
|
| 55 |
- # Commands for configuring the software
|
|
| 56 |
- #
|
|
| 57 | 79 |
configure-commands:
|
| 58 | 80 |
- |
|
| 59 | 81 |
%{autogen}
|
| 60 | 82 |
- |
|
| 61 | 83 |
%{configure}
|
| 62 | 84 |
|
| 63 |
- # Commands for building the software
|
|
| 64 |
- #
|
|
| 65 | 85 |
build-commands:
|
| 66 | 86 |
- |
|
| 67 | 87 |
%{make}
|
| 68 | 88 |
|
| 69 |
- # Commands for installing the software into a
|
|
| 70 |
- # destination folder
|
|
| 71 |
- #
|
|
| 72 | 89 |
install-commands:
|
| 73 | 90 |
- |
|
| 74 | 91 |
%{make-install}
|
| 92 |
+ - |
|
|
| 93 |
+ %{delete_libtool_files}
|
|
| 75 | 94 |
|
| 76 | 95 |
# Commands for stripping debugging information out of
|
| 77 | 96 |
# installed binaries
|
