-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libxml2: fix mingw on Linux + double quotes + libxml2 does not create cmake targets #2714
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
aef76c9
libxml2: fix mingw on Linux + double quotes + libxml2 does not create…
madebr 5b64a9b
libxml2: bump dependencies
madebr 2b77736
libxml2: create FindLibXml2.cmake package (cmake spec)
madebr c56f0b9
libxml2: only linux needs m
madebr 0219b1c
libxml2: restore specific mingw build
SpaceIm 574c61e
libxml2: reorder methods
SpaceIm 4c44fe9
libxml2: finer grain cleanup during packaging
SpaceIm 6d4440a
libxml2: improve system libs
SpaceIm 7a3f466
libxml2: avoid creating multiple .pc files
SpaceIm 2234d5b
libxml2: no components + updated cmake_find_package_* names
madebr cb50a55
libxml2: fix CC/LD/AR on mingw@Windows + pass -DIN_LIBXML + link to c…
madebr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
recipes/libxml2/all/patches/2.9.10-0001-fix-install-mingw.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- a/win32/Makefile.mingw | ||
+++ b/win32/Makefile.mingw | ||
@@ -35,1 +35,1 @@ | ||
-CPP = gcc.exe -E | ||
+CPP ?= gcc.exe -E | ||
@@ -42,1 +42,1 @@ | ||
-CC = gcc.exe | ||
+CC ?= gcc.exe | ||
@@ -62,1 +62,1 @@ | ||
-LD = gcc.exe | ||
+LD = $(CC) | ||
@@ -94,1 +94,1 @@ | ||
-AR = ar.exe | ||
+AR ?= ar.exe | ||
@@ -246,18 +246,17 @@ distclean : clean | ||
rebuild : clean all | ||
|
||
install-libs : all | ||
- cmd.exe /C "if not exist $(INCPREFIX)\libxml2 mkdir $(INCPREFIX)\libxml2" | ||
- cmd.exe /C "if not exist $(INCPREFIX)\libxml2\libxml mkdir $(INCPREFIX)\libxml2\libxml" | ||
- cmd.exe /C "if not exist $(BINPREFIX) mkdir $(BINPREFIX)" | ||
- cmd.exe /C "if not exist $(LIBPREFIX) mkdir $(LIBPREFIX)" | ||
- cmd.exe /C "copy $(XML_SRCDIR)\include\libxml\*.h $(INCPREFIX)\libxml2\libxml" | ||
- cmd.exe /C "copy $(BINDIR)\$(XML_SO) $(SOPREFIX)" | ||
- cmd.exe /C "copy $(BINDIR)\$(XML_A) $(LIBPREFIX)" | ||
- cmd.exe /C "copy $(BINDIR)\$(XML_IMP) $(LIBPREFIX)" | ||
- cmd.exe /C "copy $(BINDIR)\xml*.exe $(BINPREFIX)" | ||
+ cmd.exe /C if not exist $(INCPREFIX)\libxml2 mkdir $(INCPREFIX)\libxml2 | ||
+ cmd.exe /C if not exist $(INCPREFIX)\libxml2\libxml mkdir $(INCPREFIX)\libxml2\libxml | ||
+ cmd.exe /C if not exist $(BINPREFIX) mkdir $(BINPREFIX) | ||
+ cmd.exe /C if not exist $(LIBPREFIX) mkdir $(LIBPREFIX) | ||
+ cmd.exe /C copy $(XML_SRCDIR)\include\libxml $(INCPREFIX)\libxml2\libxml | ||
+ cmd.exe /C copy $(BINDIR)\$(XML_SO) $(SOPREFIX) | ||
+ cmd.exe /C copy $(BINDIR)\$(XML_A) $(LIBPREFIX) | ||
+ cmd.exe /C copy $(BINDIR)\$(XML_IMP) $(LIBPREFIX) | ||
+ cmd.exe /C copy $(BINDIR)\xml*.exe $(BINPREFIX) | ||
|
||
install : install-libs | ||
- cmd.exe /C "copy $(BINDIR)\*.exe $(BINPREFIX)" | ||
|
||
install-dist : install-libs | ||
cmd.exe /C "copy $(BINDIR)\xml*.exe $(BINPREFIX)" | ||
@@ -322,11 +322,11 @@ | ||
ifeq ($(STATIC),1) | ||
$(BINDIR)/%.exe : $(UTILS_SRCDIR)/%.c | ||
$(CC) -DLIBXML_STATIC $(CFLAGS) -o $(subst .c,.o,$(UTILS_INTDIR)/$(<F)) -c $< | ||
- $(LD) $(LDFLAGS) -o $@ $(subst .c,.o,$(UTILS_INTDIR)/$(<F)) -l$(XML_BASENAME) $(LIBS) | ||
+ $(LD) $(LDFLAGS) -o $@ $(subst .c,.o,$(UTILS_INTDIR)/$(<F)) $(BINDIR)/$(XML_A) $(LIBS) | ||
else | ||
$(BINDIR)/%.exe : $(UTILS_SRCDIR)/%.c | ||
$(CC) $(CFLAGS) -o $(subst .c,.o,$(UTILS_INTDIR)/$(<F)) -c $< | ||
- $(LD) $(LDFLAGS) -o $@ $(subst .c,.o,$(UTILS_INTDIR)/$(<F)) -l$(XML_BASENAME) $(LIBS) | ||
+ $(LD) $(LDFLAGS) -o $@ $(subst .c,.o,$(UTILS_INTDIR)/$(<F)) $(BINDIR)/$(XML_IMP) $(LIBS) | ||
endif | ||
|
||
# Builds xmllint and friends. Uses the implicit rule for commands. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be a function since it's duplicated here