summarylogtreecommitdiffstats
path: root/4.20-npfeiler-libfglrx_ip.patch
blob: 34b13f5fc337eee8a61be28461805b207353e38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- archive_files/common/lib/modules/fglrx/build_mod/2.6.x/Makefile
+++ archive_files/common/lib/modules/fglrx/build_mod/2.6.x/Makefile
@@ -27,7 +27,6 @@
 LIBIP_PREFIX	?= ..
 
 obj-m           += fglrx.o
-fglrx-libs      += libfglrx_ip.a
 
 fglrx-c-objs    += firegl_public.o      \
                    kcl_acpi.o           \
@@ -41,7 +40,7 @@ fglrx-c-objs    += firegl_public.o      \
                    kcl.o                \
                    kcl_wait.o
 
-fglrx-objs      += $(fglrx-c-objs) $(fglrx-libs)
+fglrx-objs      += $(fglrx-c-objs)
 
 fglrx-hdrs      += firegl_public.h      \
                    fglrxko_pci_ids.h    \
@@ -70,6 +69,8 @@ EXTRA_CFLAGS    += \
                 -DPAGE_ATTR_FIX=$(PAGE_ATTR_FIX) \
                 -DCOMPAT_ALLOC_USER_SPACE=$(COMPAT_ALLOC_USER_SPACE) \
 
+EXTRA_LDFLAGS      := /usr/lib/fglrx/libfglrx_ip.a_shipped
+
 ifeq ($(KERNELRELEASE),)
 # on first call from remote location we get into this path
 # whilst on second call all is managed by the embedding kernel makefile