Commit de5fe999 authored by Damien Fouilleul's avatar Damien Fouilleul

libtool: added support for libtool executable wrapper on Cygwin when compiling...

libtool: added support for libtool executable wrapper on Cygwin when compiling in devel mode, this code may also need be ported on Linux if necessary
parent f2bf5d58
......@@ -73,6 +73,19 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
if( (psz_vlc = strrchr( psz_path, '\\' )) ) *psz_vlc = '\0';
#ifndef HAVE_RELEASE
{
/* remove trailing \.libs from executable dir path if seen,
we assume we are running vlc through libtool wrapper in build dir */
int offset = strlen(psz_path)-sizeof("\\.libs")+1;
if( offset > 0 )
{
psz_vlc = psz_path+offset;
if( ! strcmp(psz_vlc, "\\.libs") ) *psz_vlc = '\0';
}
}
#endif
vlc_global( p_this )->psz_vlcpath = strdup( psz_path );
/* Set the default file-translation mode */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment