Skip to content

Commit

Permalink
lm4tools: fix ARM build
Browse files Browse the repository at this point in the history
There is a hardcoded `/usr/local` reference that prevents the build from
being able to find `libusb`.

Closes #88207.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
carlocab authored and BrewTestBot committed Nov 1, 2021
1 parent 3e5ea65 commit 4d3635b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Formula/lm4tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Lm4tools < Formula
depends_on "libusb"

def install
# Fix a hardcoded `/usr/local` reference that breaks the ARM build
inreplace "lmicdiusb/Makefile", "/usr/local", HOMEBREW_PREFIX
system "make", "install", "PREFIX=#{prefix}"
end

Expand Down

0 comments on commit 4d3635b

Please sign in to comment.