[MPlayer-dev-eng] Customizing binary names via configure

The Wanderer inverseparadox at comcast.net
Tue Dec 13 04:00:04 CET 2005


Diego Biurrun wrote:

> On Sun, Dec 11, 2005 at 10:39:15PM -0500, The Wanderer wrote:
> 
>> Corey Hickey wrote:

>>> It's in mplayer.c at line 1378. See below (I've rewrapped it so
>>> it fits within 72 characters and is readable in this email).
>>> 
>>> if ( argv[0] )
>>>  if(!strcmp(argv[0],"gmplayer") ||
>>>    (strrchr(argv[0],'/') &&
>>>    !strcmp(strrchr(argv[0],'/'),"/gmplayer") ) )
>>>          use_gui=1;
>> 
>> Hmm. That's where the functionality is determined, yes, but where
>> is the binary name itself set? The binary has to be given its name
>> sometime during the compile process, and that can't be done from a
>> source file...
> 
> config.mak:
> PRG = mplayer
> 
> Makefile:
> $(PRG):	$(MPLAYER_DEP)
> 	$(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(LIBS_MPLAYER)

Yes, yes, I knew that. I was referring to the gmplayer 'binary' name,
and Corey has already answered the question of where that's set.

I'm not *entirely* technically incompetent, implausible though that may
seem at times. ^_^

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.




More information about the MPlayer-dev-eng mailing list