This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygport patch: suppress libtool fixup step


JonY needs to suppress the "libtool fixup" postinstall step when
packaging the mingw64 gcc.  He may or may not need to fixup his .la
files, BUT -- given that we're talking about gcc here, AND his cross
compiler goes somewhere other than /'s likely that whatever
"fixing up" he needs to do, will be specific to that package and likely
unable to re-use the more generic fixup code.

How about this patch?  It seems to work and solves that particular issue
for mingw64-gcc.

diff --git a/lib/src_postinst.cygpart b/lib/src_postinst.cygpart
index 6160a56..1b4f581 100644
--- a/lib/src_postinst.cygpart
+++ b/lib/src_postinst.cygpart
@@ -544,6 +544,12 @@ __prep_libtool_modules() {
 	      dependency_libs weak_library_names current age revision \
 		  installed shouldnotlink dlopen dlpreopen libdir
+	if defined _CYGPORT_RESTRICT_postinst_libtool_modules_
+	then
+		inform "Skipping fix libtool modules step per request.";
+		return 0;
+	fi
 	pushd ${D}
 	ltlibs="$(find * -name '*.la')"
Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]