Consider:
grbcxx -shared -o mylibrary.so #some .o sources to link into the library.
Expected:
grbcxx recognises the -shared flag and links against the shared libraries of the (in this case) reference backend.
Observed:
grbcxx rather still attempts to link against static libraries.