Fix Linux 2.4 compatibility
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 4 May 2008 23:30:34 +0000 (23:30 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 4 May 2008 23:30:34 +0000 (23:30 +0000)
Filter out harmful options from OBJCOPY.  Linux 2.4 adds "-O binary" and
"-S" for i386 and x86_64, which would break the build.

Use $(TOP) in hal_unmangle.objcopy path.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3599 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath_hal/Makefile

index c9a3ef4a36d21ffa7a474ed301b6a3016a9c1c26..6b1b90cd22b1da7eef51ba9b5f91485c313a7176 100644 (file)
@@ -89,8 +89,8 @@ else
 endif
        # Replace as many hashed names as possible with meaningful
        # ones in the symbol table of the binary kernel module for HAL.
-       $(OBJCOPY) \
-               `cat $(shell dirname $(obj))/scripts/hal_unmangle.objcopy` \
+       $(filter-out -O binary -S,$(OBJCOPY)) \
+               `cat $(TOP)/scripts/hal_unmangle.objcopy` \
                $(obj)/$(TARGET).hal.o
 
 install: