Browse Source

Shlib.make: MinGW's 'ln' just copies the file, see https://trac.osgeo.org/grass/ticket/3718

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73905 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 6 years ago
parent
commit
be1d5da8c4
1 changed files with 2 additions and 4 deletions
  1. 2 4
      include/Make/Shlib.make

+ 2 - 4
include/Make/Shlib.make

@@ -8,10 +8,8 @@ LDFLAGS += $(SHLIB_LDFLAGS)
 
 $(SHLIB): $(SHLIB_OBJS)
 	$(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(LIBES) $(EXTRA_LIBS) $(MATHLIB)
-ifndef MINGW
+        # unversioned names are supposed to be symlinks, Windows
+        # doesn't have symlinks, so MinGW's "ln" just copies the file
 	(cd $(ARCH_LIBDIR); ln -f -s $(notdir $@) $(patsubst %.$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@))
-else
-	(cd $(ARCH_LIBDIR); cp -a $(notdir $@) $(notdir $(patsubst %.$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@)))
-endif
 
 shlib: $(SHLIB)