Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
install: put a symlink as well in the 4.5 profile prefix
Browse files Browse the repository at this point in the history
Without this symlink in place from the 4.5 profile folder to
4.0's fsc.exe, xbuild gives an error because it is somehow
looking for it in the 4.5 profile (that should be investigated
but for now this workaround does the trick smartly enough).
  • Loading branch information
knocte committed Aug 18, 2012
1 parent 4e910e4 commit 5cc6d40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsharp/Fsc/Makefile.in
Expand Up @@ -33,5 +33,5 @@ $(tmpdir)FSCstrings.resources: $(srcdir)../FSCstrings.txt

include $(topdir)/src/fsharp/targets.make

install: install-bin-2 install-bin-4
install: install-bin-2 install-bin-4 install-bin-4-5

5 changes: 5 additions & 0 deletions src/fsharp/targets.make
Expand Up @@ -115,6 +115,11 @@ install-bin-2 install-bin-4:
$(INSTALL_LIB) $(outdir)$(ASSEMBLY) $(DESTDIR)$(libdir)mono/$(TARGET)
$(INSTALL_BIN) $(outdir)$(subst fs,fsharp,$(NAME))$(VERSION) $(DESTDIR)/$(bindir)

install-bin-4-5: install-bin-4
@if test -e $(DESTDIR)$(libdir)mono/4.5/; then \
ln -fs $(DESTDIR)$(libdir)mono/4.0/$(ASSEMBLY) $(DESTDIR)$(libdir)mono/4.5/$(ASSEMBLY); \
fi

$(objdir) $(objdir)$(TARGET_2_0) $(objdir)$(TARGET_4_0):
mkdir -p $@

Expand Down

0 comments on commit 5cc6d40

Please sign in to comment.