summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/xfoil')
-rw-r--r--sci-physics/xfoil/files/xfoil-6.99-ldflags.patch12
-rw-r--r--sci-physics/xfoil/xfoil-6.99-r1.ebuild5
2 files changed, 16 insertions, 1 deletions
diff --git a/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch b/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch
new file mode 100644
index 000000000000..4667a891d8a7
--- /dev/null
+++ b/sci-physics/xfoil/files/xfoil-6.99-ldflags.patch
@@ -0,0 +1,12 @@
+Fix bug #771615
+
+--- a/bin/Makefile 2024-04-11 08:00:24.832420892 +0200
++++ b/bin/Makefile 2024-04-11 07:59:56.052410291 +0200
+@@ -152,7 +152,7 @@
+ $(INSTALLCMD) pplot $(BINDIR)
+
+ blu: blu.o profil.o
+- $(FC) -o blu blu.o profil.o
++ $(FC) -o blu blu.o profil.o $(FTNLIB)
+ $(INSTALLCMD) blu $(BINDIR)
+
diff --git a/sci-physics/xfoil/xfoil-6.99-r1.ebuild b/sci-physics/xfoil/xfoil-6.99-r1.ebuild
index 23bffe5c71d6..9628062e61ee 100644
--- a/sci-physics/xfoil/xfoil-6.99-r1.ebuild
+++ b/sci-physics/xfoil/xfoil-6.99-r1.ebuild
@@ -20,7 +20,10 @@ IUSE="doc examples"
RDEPEND="x11-libs/libX11"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}"/${P}-overflow.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-overflow.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+)
src_prepare() {
# fix bug #147033