[GRASS-SVN] r73905 - grass/trunk/include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 3 14:03:59 PST 2019


Author: martinl
Date: 2019-01-03 14:03:59 -0800 (Thu, 03 Jan 2019)
New Revision: 73905

Modified:
   grass/trunk/include/Make/Shlib.make
Log:
Shlib.make: MinGW's 'ln' just copies the file, see #3718

Modified: grass/trunk/include/Make/Shlib.make
===================================================================
--- grass/trunk/include/Make/Shlib.make	2019-01-02 20:06:25 UTC (rev 73904)
+++ grass/trunk/include/Make/Shlib.make	2019-01-03 22:03:59 UTC (rev 73905)
@@ -8,10 +8,8 @@
 
 $(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)



More information about the grass-commit mailing list