$(RANLIB) $@
$(SLIBNAME): $(SLIBNAME_WITH_MAJOR)
- ln -sf $^ $@
+ $(LN_S) $^ $@
$(SLIBNAME_WITH_MAJOR): $(SHARED_OBJS)
$(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRALIBS) $(EXTRAOBJS)
install -m 755 $(SLIBNAME) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
$(STRIP) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
cd "$(SHLIBDIR)" && \
- ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
+ $(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
cd "$(SHLIBDIR)" && \
- ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
+ $(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
$(SLIB_INSTALL_EXTRA_CMD)
install-lib-static: $(LIB)
make="make"
strip="strip"
asmalign_pot="unknown"
+ln_s="ln -sf"
# machine
arch=`uname -m`
ar="${cross_prefix}${ar}"
ranlib="${cross_prefix}${ranlib}"
strip="${cross_prefix}${strip}"
+ln_s="${cross_prefix}${ln_s}"
# we need to build at least one lib type
if ! enabled_any static shared; then
echo "CC=$cc" >> config.mak
echo "AR=$ar" >> config.mak
echo "RANLIB=$ranlib" >> config.mak
+echo "LN_S=$ln_s" >> config.mak
if enabled dostrip; then
echo "STRIP=$strip" >> config.mak
else
mkdir -p $dir
done
for f in $FILES ; do
- ln -sf "$source_path/$f" $f
+ $ln_s "$source_path/$f" $f
done
fi