I am against this sort of patches. Because autotools are stupid the second line should be the right attempt: libradeonsi_la_LDFLAGS = -Wl,--no-undefined -shared -avoid-version \ -L../radeon \ $(LLVM_LDFLAGS)