diff --git a/linux/lib/README.md b/linux/lib/README.md
new file mode 100644
index 000000000..1428aa98b
--- /dev/null
+++ b/linux/lib/README.md
@@ -0,0 +1,6 @@
+# linux/lib/gpiod
+
+This is a nasty hack because the current ubuntu has an old version of libgpiod and I don't want to make others have to build that lib from source.
+Once ubuntu 21.04 is out I think this problem will be solved.
+
+-@geeksville
\ No newline at end of file
diff --git a/linux/lib/libgpiod.a b/linux/lib/libgpiod.a
new file mode 100644
index 000000000..7b4043fb0
Binary files /dev/null and b/linux/lib/libgpiod.a differ
diff --git a/linux/lib/libgpiod.la b/linux/lib/libgpiod.la
new file mode 100755
index 000000000..580390b4e
--- /dev/null
+++ b/linux/lib/libgpiod.la
@@ -0,0 +1,41 @@
+# libgpiod.la - a libtool library file
+# Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-14
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='libgpiod.so.2'
+
+# Names of this library.
+library_names='libgpiod.so.2.2.1 libgpiod.so.2 libgpiod.so'
+
+# The name of the static archive.
+old_library='libgpiod.a'
+
+# Linker flags that cannot go in dependency_libs.
+inherited_linker_flags=''
+
+# Libraries that this one depends upon.
+dependency_libs=''
+
+# Names of additional weak libraries provided by this library
+weak_library_names=''
+
+# Version information for libgpiod.
+current=4
+age=2
+revision=1
+
+# Is this an already installed library?
+installed=yes
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=no
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='/usr/local/lib'
diff --git a/linux/lib/libgpiod.so b/linux/lib/libgpiod.so
new file mode 100755
index 000000000..3cbca036a
Binary files /dev/null and b/linux/lib/libgpiod.so differ
diff --git a/linux/lib/libgpiod.so.2 b/linux/lib/libgpiod.so.2
new file mode 100755
index 000000000..3cbca036a
Binary files /dev/null and b/linux/lib/libgpiod.so.2 differ
diff --git a/linux/lib/libgpiod.so.2.2.1 b/linux/lib/libgpiod.so.2.2.1
new file mode 100755
index 000000000..3cbca036a
Binary files /dev/null and b/linux/lib/libgpiod.so.2.2.1 differ
diff --git a/platformio.ini b/platformio.ini
index 833645b84..963f1a3d7 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html
[platformio]
-default_envs = tbeam
+;default_envs = tbeam
;default_envs = tbeam0.7
;default_envs = heltec-v2.0
;default_envs = tlora-v1
@@ -18,7 +18,7 @@ default_envs = tbeam
;default_envs = lora-relay-v1 # nrf board
;default_envs = t-echo
;default_envs = nrf52840dk-geeksville
-;default_envs = native # lora-relay-v1 # nrf52840dk-geeksville # linux # or if you'd like to change the default to something like lora-relay-v1 put that here
+default_envs = native # lora-relay-v1 # nrf52840dk-geeksville # linux # or if you'd like to change the default to something like lora-relay-v1 put that here
;default_envs = rak4631
;default_envs = rak4630
@@ -429,7 +429,7 @@ lib_deps =
[env:native]
platform = https://github.com/geeksville/platform-native.git
src_filter = ${env.src_filter} - - - - -
-build_flags = ${arduino_base.build_flags} -O0 -lgpiod
+build_flags = ${arduino_base.build_flags} -O0 -lgpiod -Llinux/lib
framework = arduino
board = native
lib_deps =