Re: static
Samuel Tardieu <[email protected]> Thu, 08 Apr 2010 10:18:09 +0200
| Newsgroups | gmane.comp.lang.ada.sockets |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Oliver" == Kellogg, Oliver <[email protected]> writes: Oliver> For example, we wish to link only the adasockets lib statically Oliver> but other libs dynamically. I use the following workaround in Oliver> my Makefile: [sorry for my late answer, I had this list misconfigured and missed your message -- that should be fixed] Oliver> For --cflags, we want -A not -I (to avoid recompilations) What I don't get is what triggers the recompilations in the first place. When I compile applications using AdaSockets, it does not get recompiled. What flags do you use? "-s"? If this is the case, isn't it expected? (you ask for a recompilation with a consistent set of flags, why not recompile AdaSockets in this case?) Anyway, you can get what you want by using: `adasockets-config --cflags | sed -e 's/-I/-A/'` instead of `adasockets-config --cflags` Oliver> For --lflags, we want the static library not the dynamic library Oh, and only for AdaSockets, I get it. You can use `adasockets-config --variable=libdir`/libadasockets.a Example: % echo `adasockets-config --variable=libdir`/libadasockets.a /usr/lib/libadasockets.a Does it help? Sam -- Samuel Tardieu -- [email protected] -- http://www.rfc1149.net/ _______________________________________________ AdaSockets mailing list [email protected] http://lists.rfc1149.net/mailman/listinfo/adasockets