]> git.pld-linux.org Git - packages/lsvpd.git/commitdiff
- build fixes.
authorPaweł Sikora <pluto@pld-linux.org>
Wed, 20 Sep 2006 15:31:17 +0000 (15:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lsvpd-gcc4.patch -> 1.1

lsvpd-gcc4.patch [new file with mode: 0644]

diff --git a/lsvpd-gcc4.patch b/lsvpd-gcc4.patch
new file mode 100644 (file)
index 0000000..fee6f95
--- /dev/null
@@ -0,0 +1,38 @@
+--- lsvpd-0.16.0/src/device_scsi.c.orig        2006-09-20 15:11:49.000000000 +0000
++++ lsvpd-0.16.0/src/device_scsi.c     2006-09-20 15:14:08.596244500 +0000
+@@ -382,7 +382,7 @@
+       s.supertype = DEVICE_TYPE_SCSI;
+       i = 0;
+       while (NULL != (x = device_scsi_ds_prefixes[i].type)) {
+-              if (DEVICE_TYPE_SCSI != x) {
++              if (strcmp(DEVICE_TYPE_SCSI, x)) {
+                       s.type = x;
+                       node_type_register(&s);
+               }
+--- lsvpd-0.16.0/src/init.h.orig       2006-09-13 23:58:24.000000000 +0000
++++ lsvpd-0.16.0/src/init.h    2006-09-20 15:29:28.845091000 +0000
+@@ -57,23 +57,10 @@
+  *
+  * Thanks to Rusty Russell, Jeremy Kerr and David Gibson for hints on
+  * all of this.
+- *
+- * Building with -funit-at-a-time will result in a link failure, since
+- * it optimises away pretty much everything to do with this code.
+- * This means that building with -O2 will fail, since it implies the
+- * above optimisation.  However, it is possible to build with -O2 by
+- * adding -fno-unit-at-a-time.  Thanks to Olaf Hering <olh@suse.de>
+- * for working this out.
+  */
+- 
+- /*
+-  * When building for GCC 4.1.0 ( perhaps 4.0.X and/or >4.1.0) the -O
+-  * option will optimise all this away, so you need to include the 
+-  * -fno-unit-at-a-time option.
+-  */
+ #define INIT(fn) static initcall_t __initcall_##fn \
+-__attribute__((__unused__)) \
++__attribute__((__used__)) \
+ __attribute__((__section__("init_call"))) = &fn
+ static inline void call_inits (void)
This page took 0.084459 seconds and 4 git commands to generate.