diff -Naur dnsmasq-2.83-orig/Makefile dnsmasq-2.83-new/Makefile
--- dnsmasq-2.83-orig/Makefile	2021-01-17 23:35:24.000000000 +0000
+++ dnsmasq-2.83-new/Makefile	2021-01-20 17:38:29.412553000 +0000
@@ -24,12 +24,13 @@
 LOCALEDIR     = $(PREFIX)/share/locale
 BUILDDIR      = $(SRC)
 DESTDIR       = 
-CFLAGS        = -Wall -W -O2
-LDFLAGS       = 
+CFLAGS        = -Wall -W -O2 -I$(STAGING_DIR)/usr/include $(shell pkg-config --cflags gobject-2.0 gmodule-2.0 gio-2.0 glib-2.0 dbus-glib-1 libffi zlib)
+# karlo 1/25/2014 added libs on next line for standalone cross build
+LDFLAGS       =  -lmsg  $(shell pkg-config --libs gobject-2.0 gmodule-2.0 gio-2.0 glib-2.0 dbus-glib-1 libffi zlib)
 COPTS         = 
 RPM_OPT_FLAGS = 
 LIBS          = 
-
+CC	      = $(CROSS_COMPILE)gcc
 #################################################################
 
 # Variables you might want to override.
@@ -161,7 +162,7 @@
 $(objs): $(copts_conf) $(hdrs)
 
 .c.o:
-	$(CC) $(CFLAGS) $(COPTS) $(i18n) $(build_cflags) $(RPM_OPT_FLAGS) -c $<	
+	$(CC) -I$(top)/../../../ooma/dbus_headers/ -I$(top)/../../../staging_dir/target-arm-none-linux-gnueabi/usr/lib/glib-2.0/include $(CFLAGS) $(COPTS) $(DBUS_MINOR) $(i18n) $(DBUS_CFLAGS) $(build_cflags) $(RPM_OPT_FLAGS) -c $<	 
 
 dnsmasq : $(objs)
 	$(CC) $(LDFLAGS) -o $@ $(objs) $(build_libs) $(LIBS) 
