#78 Operate in stoolie mode when called as libtoolize
Opened 2 months ago by firasuke. Modified a month ago
cross/ firasuke/slibtool main  into  main

file modified
+1 -1
@@ -11,7 +11,7 @@ 

  ## ----------------------------------------------------------      ##

  ## This script only exists to satisfy build-time requirements in   ##

  ## projects that directly invoke the generated libtool script at   ##

- ## configure time (bad practice to beging with, should never be    ##

+ ## configure time (bad practice to begin with, should never be     ##

  ## necessary in the first place).                                  ##

  ##                                                                 ##

  ## By default, slibtool.sh is _NOT_ copied to a project's build    ##

file modified
+3
@@ -161,6 +161,9 @@ 

  

  	else if (!(strcmp(program,"slibtoolize")))

  		flags |= SLBT_DRIVER_MODE_STOOLIE;

+         

+     else if (!(strcmp(program,"libtoolize")))

+ 		flags |= SLBT_DRIVER_MODE_STOOLIE;

  

  	/* debug */

  	if (!(strcmp(program,"dlibtool")))

When linking libtoolize to slibtoolize (which is what most distributions that use slibtool are doing) it gets run as slibtool instead of slibtoolize (which is not the expected behavior).

This should allow slibtool to operate in slibtoolize (or stoolie mode) when being called as libtoolize.

1 new commit added

  • Fix typo in aux/slibtool.sh
a month ago