From 89abef408f02e463cfe9d462fa10be64a94b3b36 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 3 Nov 2014 01:53:17 +0100 Subject: Fix optional definitions in static binaries * libcons/extra-version.c (cons_extra_version): Add weak attribute. * libcons/vcons-add.c (cons_vcons_add): Likewise. * libcons/vcons-remove.c (cons_vcons_remove): Likewise. * libdiskfs/extra-version.c (diskfs_extra_version): Likewise. * libdiskfs/get-source.c (diskfs_get_source): Likewise. * libdiskfs/readonly-changed.c (diskfs_readonly_changed): Likewise. * libdiskfs/sync-default.c (diskfs_default_sync_interval): Likewise. * libdiskfs/validate-author.c (diskfs_validate_author_change): Likewise. * libdiskfs/validate-flags.c (diskfs_validate_flags_change): Likewise. * libdiskfs/validate-group.c (diskfs_validate_group_change): Likewise. * libdiskfs/validate-mode.c (diskfs_validate_mode_change): Likewise. * libdiskfs/validate-owner.c (diskfs_validate_owner_change): Likewise. * libdiskfs/validate-rdev.c (diskfs_validate_rdev_change): Likewise. * libnetfs/file-get-storage-info-default.c (netfs_file_get_storage_info): Likewise. * libnetfs/get-source.c (netfs_get_source): Likewise. * libnetfs/set-get-trans.c (netfs_set_translator, netfs_get_translator): Likewise. * libtrivfs/get-source.c (trivfs_get_source): Likewise. --- libcons/vcons-remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcons/vcons-remove.c') diff --git a/libcons/vcons-remove.c b/libcons/vcons-remove.c index 34b31d6f..273c5a0f 100644 --- a/libcons/vcons-remove.c +++ b/libcons/vcons-remove.c @@ -24,7 +24,7 @@ /* The virtual console VCONS_ENTRY is going to be removed. VCONS_ENTRY->cons is locked. */ -void +void __attribute__ ((weak)) cons_vcons_remove (cons_t cons, vcons_list_t vcons_entry) { assert (!vcons_entry->vcons); -- cgit v1.2.3