mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-30 10:30:56 +08:00
Handle /go subdirs.
This commit is contained in:
@@ -119,6 +119,17 @@
|
||||
cp dirs build/files.g++
|
||||
cp dirs build/files.go
|
||||
|
||||
%if %build_go
|
||||
# Collect /go subdirs
|
||||
TGTDIR="%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\. ) echo "${TGTDIR}/go" >> build/files.go ;;
|
||||
*) echo "${TGTDIR}/$i/go" >> build/files.go ;;
|
||||
esac
|
||||
done
|
||||
|
||||
%endif
|
||||
TGTDIR="%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
@@ -137,7 +148,7 @@
|
||||
*include/c++*);;
|
||||
*include-fixed/*);;
|
||||
*finclude/*);;
|
||||
*/go/*);;
|
||||
*/go/*) ;; # ignore : explicitly put into rpm elsewhere
|
||||
*adainclude*);;
|
||||
*adalib*);;
|
||||
*gnat1);;
|
||||
|
||||
Reference in New Issue
Block a user