# Sdl-config editing

**URL:** <https://discourse.libsdl.org/t/sdl-config-editing/9890>\
**Category:** SDL Development\
**Created:** [December 24, 2003, 3:47pm UTC](https://discourse.libsdl.org/t/sdl-config-editing/9890 "2003-12-24T15:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_Dioxide](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/l/85e7bf/32.png) [@Leo\_Dioxide](https://discourse.libsdl.org/u/Leo_Dioxide)\
**Post date:** [December 24, 2003, 3:47pm UTC](https://discourse.libsdl.org/t/sdl-config-editing/9890/1 "2003-12-24T15:47:01Z")

</div>

See, as much as I appreciate your response, editing sdl-config doesn’t quite  
cut it. Its a binary, as in, no editing. The interface is pretty stupid  
too, as I can only see the librarys and such. So how do I actually add a  
library? Lets say I want to add library X11, usually it would just be a -l  
(dash L).

///////////  
// Leo //  
///////////\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Expand your wine savvy ? and get some great new recipes ? at MSN Wine.  
[http://wine.msn.com](http://wine.msn.com)

---

<div class="post-metadata">

**Author:** ![Mark\_K\_Kim](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/e68b1a/32.png) [@Mark\_K\_Kim](https://discourse.libsdl.org/u/Mark_K_Kim)\
**Post date:** [December 24, 2003, 4:10pm UTC](https://discourse.libsdl.org/t/sdl-config-editing/9890/2 "2003-12-24T16:10:00Z")

</div>

sdl-config isn’t a binary. It’s a bash script.

-MarkOn Wed, 24 Dec 2003, Leo . wrote:

> See, as much as I appreciate your response, editing sdl-config doesn’t quite  
> cut it. Its a binary, as in, no editing. The interface is pretty stupid  
> too, as I can only see the librarys and such. So how do I actually add a  
> library? Lets say I want to add library X11, usually it would just be a -l  
> (dash L).
> 
> ///////////  
> // Leo //  
> ///////////
> 
> * * *
> 
> Expand your wine savvy ? and get some great new recipes ? at MSN Wine.  
> [http://wine.msn.com](http://wine.msn.com)
> 
> * * *
> 
> SDL mailing list  
> SDL at [libsdl.org](http://libsdl.org)  
> [http://www.libsdl.org/mailman/listinfo/sdl](http://www.libsdl.org/mailman/listinfo/sdl)

–  
Mark K. Kim  
AIM: markus kimius  
Homepage: [http://www.cbreak.org/](http://www.cbreak.org/)  
Xanga: [http://www.xanga.com/vindaci](http://www.xanga.com/vindaci)  
Friendster: [http://www.friendster.com/user.jsp?id=13046](http://www.friendster.com/user.jsp?id=13046)  
PGP key fingerprint: 7324 BACA 53AD E504 A76E 5167 6822 94F0 F298 5DCE  
PGP key available on the homepage

---

<div class="post-metadata">

**Author:** ![Chris\_Seaton](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/chris_seaton/32/307_2.png) [@Chris\_Seaton](https://discourse.libsdl.org/u/Chris_Seaton)\
**Post date:** [December 24, 2003, 4:40pm UTC](https://discourse.libsdl.org/t/sdl-config-editing/9890/3 "2003-12-24T16:40:01Z")

</div>

> > See, as much as I appreciate your response, editing sdl-config doesn’t quite  
> > cut it. Its a binary, as in, no editing. The interface is pretty stupid  
> > too, as I can only see the librarys and such. So how do I actually add a  
> > library? Lets say I want to add library X11, usually it would just be a -l  
> > (dash L).

“sdl-config --libs -Lxll” isn’t a valid call to sdl-config. If you want  
to compile your program with the SDL libraries and the X11 libraries you  
want to append “`sdl-config --libs` -Lxll” to your call to GCC (or  
whatever).

If you want sdl-config to include X11 when returing to a call for  
“sdl-config --libs”, open up sdl-config in a text editor and add add  
that to the switch case for --libs.

Chris Seaton
