I don't think you want to end the " for extraflags:
`extraflags="-Wl,-rpath='"$CRASLIBDIR"' -L."`