- -ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
- -ln -sv /tools/bin/perl /usr/bin
- -ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
- -ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib
- sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
+ -ln -sv $(TOOLS_DIR)/bin/{bash,cat,echo,pwd,stty} /bin
+ -ln -sv $(TOOLS_DIR)/bin/perl /usr/bin
+ -ln -sv $(TOOLS_DIR)/lib/libgcc_s.so{,.1} /usr/lib
+ -ln -sv $(TOOLS_DIR)/lib/libstdc++.so{,.6} /usr/lib
+ sed 's@$(TOOLS_DIR)@/usr@' $(TOOLS_DIR)/lib/libstdc++.la > /usr/lib/libstdc++.la