Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22137

How to not use -wrap for all linked libraries?

$
0
0

My program uses several precompiled static libraries. I wrap malloc and free, but I want one of linked libraries to use 'real' malloc and free. As I run:

gcc [...] -W1, --wrap=malloc -W1, --wrap=free [used libraries]

all libraries would use wrapped functions.

Is partial linking a way here? What if I link this one library dynamically?

Thanks in advance, Jacek


Viewing all articles
Browse latest Browse all 22137

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>