Use dyld_flags for mac, ldflags for linux.