Check-in [e46c4439b2]
Overview
Comment:Deal with LIB files better
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e46c4439b242aad8c4c2cc4266a8a38c626d2330
User & Date: rkeene on 2019-06-19 18:36:13
Other Links: manifest | tags
Context
2019-06-19
18:39
Correctly setup pkg-config check-in: 3f0396eb30 user: rkeene tags: trunk
18:36
Deal with LIB files better check-in: e46c4439b2 user: rkeene tags: trunk
18:35
Disable EXTERN always since we always link directly to libtcl or through its stubs table check-in: 5dfcc7bdbd user: rkeene tags: trunk
Changes

Modified common/common.sh from [5c91dc1965] to [00b0b4f987].

   272    272   }
   273    273   
   274    274   function preinstall() {
   275    275   	:
   276    276   }
   277    277   
   278    278   function install() {
          279  +	local filename newFilename
          280  +
   279    281   	mkdir -p "${installdir}/lib" || return 1
   280    282   	${MAKE:-make} tcllibdir="${installdir}/lib" TCL_PACKAGE_PATH="${installdir}/lib" "${make_extra[@]}" install || return 1
          283  +
          284  +	# Rename ".LIB" files to ".a" files which KitCreator expects elsewhere
          285  +	find "${installdir}/lib" -type f -iname '*.lib' -o -iname '*.lib.linkadd' | while IFS='' read -r filename; do
          286  +		case "${filename}" in
          287  +			*.[Dd][Ll][Ll].[Ll][Ii][Bb])
          288  +				continue
          289  +				;;
          290  +		esac
          291  +		newFilename="$(echo "${filename}" | sed 's@\.lib$@.a@i;s@\.lib\.linkadd$@.a.linkadd@')"
          292  +		mv "${filename}" "${newFilename}"
          293  +	done
   281    294   }
   282    295   
   283    296   function postinstall() {
   284    297   	:
   285    298   }
   286    299   
   287    300   function createruntime() {