GCC option "-fshared-data" doesn't work
I need to use shared data in a dynamic library via the "-fshared-data" gcc option.
When two process use the library, they always work with two private data, in place of one shared.
Here is an extraction of the make command lines :
g++ -O0 -g3 -Wall -c -fPIC -fshared-data $(SRC)
g++ -Wl,-soname,$(LINKERNAME) -shared -o $(REALNAME) $(OBJS) -lc
Is it a problem with other options ?
I use GNU C++ version 2.96 20000731. Or is it a problem with the compiler ?
Thank's for your help.
|All times are GMT -5. The time now is 03:48 PM.|