diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-03-23 08:25:37 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-03-23 08:25:37 +0000 |
commit | 03b84bd38631158e919f9f807c6b4be1ff6d8ad3 (patch) | |
tree | efd108baf2f2049f3e36e9b8f874043ebb777e4c /Build/source/texk/web2c/synctexdir | |
parent | 12f440e8280268c04e1cb98974aebe7aae898a51 (diff) |
texk/web2c [MinGW]: SyncTeX requires libshlwapi.a
git-svn-id: svn://tug.org/texlive/trunk@36602 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/synctexdir')
-rw-r--r-- | Build/source/texk/web2c/synctexdir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/synctexdir/am/synctex.am | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/synctexdir/synctex_parser_utils.c | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/synctexdir/ChangeLog b/Build/source/texk/web2c/synctexdir/ChangeLog index 5753c7e692f..511d89c8ede 100644 --- a/Build/source/texk/web2c/synctexdir/ChangeLog +++ b/Build/source/texk/web2c/synctexdir/ChangeLog @@ -1,3 +1,8 @@ +2015-03-23 Peter Breitenlohner <peb@mppmu.mpg.de> + + * am/synctex.am [MinGW]: SyncTeX requires libshlwapi.a. + * synctex_parser_utils.c: Avoid an unused variable. + 2015-03-23 Akira Kakuto <kakuto@fuk.kindai.ac.jp> * synctex_parser_utils.c: Fix a bug in diff --git a/Build/source/texk/web2c/synctexdir/am/synctex.am b/Build/source/texk/web2c/synctexdir/am/synctex.am index 1f3f366de71..af9a5bd6a18 100644 --- a/Build/source/texk/web2c/synctexdir/am/synctex.am +++ b/Build/source/texk/web2c/synctexdir/am/synctex.am @@ -20,6 +20,9 @@ synctex_SOURCES = \ synctex_CPPFLAGS = -I$(srcdir)/synctexdir synctex_LDADD = $(libsynctex) $(ZLIB_LIBS) +if MINGW32 +synctex_LDADD += -lshlwapi +endif MINGW32 $(synctex_OBJECTS): $(libsynctex) @@ -32,6 +35,9 @@ libsynctex_a_CPPFLAGS = $(libsynctex_la_CPPFLAGS) libsynctex_la_LDFLAGS = -rpath @libdir@ -bindir @bindir@ -no-undefined -version-info $(SYNCTEX_LT_VERSINFO) libsynctex_la_LIBADD = $(ZLIB_LIBS) +if MINGW32 +libsynctex_la_LIBADD += -lshlwapi +endif MINGW32 libsynctex_la_SOURCES = \ synctexdir/synctex_parser.c \ diff --git a/Build/source/texk/web2c/synctexdir/synctex_parser_utils.c b/Build/source/texk/web2c/synctexdir/synctex_parser_utils.c index e2edbc2863c..2fef636d59b 100644 --- a/Build/source/texk/web2c/synctexdir/synctex_parser_utils.c +++ b/Build/source/texk/web2c/synctexdir/synctex_parser_utils.c @@ -116,7 +116,6 @@ void _synctex_strip_last_path_extension(char * string) { if(NULL != string){ char * last_component = NULL; char * last_extension = NULL; - char * next = NULL; # if defined(SYNCTEX_WINDOWS) last_component = PathFindFileName(string); last_extension = PathFindExtension(string); @@ -126,6 +125,7 @@ void _synctex_strip_last_path_extension(char * string) { last_extension[0] = '\0'; } # else + char * next = NULL; /* first we find the last path component */ if(NULL == (last_component = strstr(string,"/"))){ last_component = string; |