static-kitdll-noextern.sh at [4a78bcbd8a]

File tcl/patchscripts/static-kitdll-noextern.sh artifact a32606647f part of check-in 4a78bcbd8a


#! /bin/bash

if [ "${KITTARGET}" != "kitdll" ]; then
	exit 0
fi

if [ "${KITCREATOR_STATIC_KITDLL}" != '1' ]; then
	exit 0
fi

# For a static KitDLL we are linking directly to the object
# so there is nothing external.
sed 's/define EXTERN .*/define EXTERN/' generic/tcl.h > generic/tcl.h.new
cat generic/tcl.h.new > generic/tcl.h
rm -f generic/tcl.h.new